Documentation
¶
Overview ¶
Package planning owns persistent calendars and tasks shared by all backend clients.
Index ¶
- func ID() string
- type Item
- type Mutation
- type Result
- type Snapshot
- type Store
- func (s *Store) Claim() ([]Item, error)
- func (s *Store) Finish(in Item) (any, error)
- func (s *Store) Import(in Snapshot, source string, subscriptions []Item) (Item, error)
- func (s *Store) Mutate(m Mutation) (Result, error)
- func (s *Store) Query(from, to int64) (Snapshot, error)
- func (s *Store) Run(ctx context.Context)
- func (s *Store) SetTimeZone(zone string) (any, error)
- func (s *Store) Subscription(action string, input Item) (any, error)
- func (s *Store) TimeZoneSettings() Item
- func (s *Store) UpdateTimeZone(preference string, expected *uint64) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Snapshot ¶
type Snapshot struct {
Seq uint64 `json:"seq"`
TimeZone string `json:"timeZone"`
Calendars []Item `json:"calendars"`
Todos []Item `json:"todos"`
Groups []Item `json:"groups"`
Tags []Item `json:"tags"`
Events []Item `json:"events"`
EventMasters []Item `json:"eventMasters,omitempty"`
TodoSchedules []Item `json:"todoSchedules"`
Reminders []Item `json:"reminders"`
Sources []Item `json:"sources"`
Subscriptions []Item `json:"subscriptions"`
DefaultGroupID string `json:"defaultGroupId,omitempty"`
MyTasksColor string `json:"myTasksColor,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.