Documentation ¶
Index ¶
- type Notebook
- type Service
- func (s *Service) ApplyListPatch(ctx context.Context, listID uuid.UUID, patch string, timestamp int64) error
- func (s *Service) FetchLists(ctx context.Context, cookies []*http.Cookie) ([]TodoList, []TodoList, error)
- func (s *Service) FetchNotebook(ctx context.Context) (*Notebook, error)
- func (s *Service) FetchTodoList(ctx context.Context, listID uuid.UUID) (TodoList, error)
- func (s *Service) IsLocalHost() bool
- func (s Service) SendLoginEmail(email mail.Address, token web.TokenID) error
- func (s Service) ShareList(ctx context.Context, listID uuid.UUID) (string, error)
- func (s *Service) UpdateNotebook(ctx context.Context, fn func(*Notebook) error) (*Notebook, error)
- func (s *Service) UpdateTodoList(ctx context.Context, listID uuid.UUID, updatedAt int64, ...) (TodoList, bool, error)
- type ShareTokenAuth
- type TodoItem
- type TodoList
- func (l *TodoList) AddItem(title string) TodoItem
- func (l *TodoList) CheckItem(title string) TodoItem
- func (l *TodoList) Done() bool
- func (l *TodoList) MoveItem(title string, targetIndex uint) TodoItem
- func (l *TodoList) RemoveItem(title string)
- func (l *TodoList) Rename(title string)
- func (l *TodoList) String() string
- func (l *TodoList) UncheckItem(title string) TodoItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notebook ¶
func NewNotebook ¶
func NewNotebook() *Notebook
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ApplyListPatch ¶
func (*Service) FetchLists ¶
func (*Service) FetchNotebook ¶
func (*Service) FetchTodoList ¶
func (*Service) IsLocalHost ¶
func (Service) SendLoginEmail ¶
func (*Service) UpdateNotebook ¶
type ShareTokenAuth ¶
type ShareTokenAuth struct {}
func (*ShareTokenAuth) UserID ¶
func (a *ShareTokenAuth) UserID() web.UserID
type TodoItem ¶
func NewTodoItem ¶
Click to show internal directories.
Click to hide internal directories.