Documentation
¶
Index ¶
- func NewHappeningService(client *Client) storage.HappeningService
- func NewLogEntryService(client *Client) storage.LogEntryService
- func NewLogNoteService(client *Client) storage.LogNoteService
- type Client
- type HappeningHttpService
- func (s *HappeningHttpService) Add(ctx context.Context, happening *models.Happening) (*models.Happening, error)
- func (s *HappeningHttpService) Delete(ctx context.Context, id int64) error
- func (s *HappeningHttpService) List(options storage.HappeningListOptions) ([]*models.Happening, int64, error)
- func (s *HappeningHttpService) Update(ctx context.Context, id int64, update *models.HappeningOptional) (*models.Happening, error)
- type LogEntryHttpService
- func (s *LogEntryHttpService) Add(entry models.LogEntry) (int64, error)
- func (s *LogEntryHttpService) Delete(id int64) error
- func (s *LogEntryHttpService) GetTree(ctx context.Context, id int64, includeHistory bool) ([]models.LogEntry, error)
- func (s *LogEntryHttpService) List(options storage.LogEntryListOptions) ([]models.LogEntry, int64, error)
- func (s *LogEntryHttpService) Move(id int64, newParentID int64) error
- func (s *LogEntryHttpService) Update(id int64, update models.LogEntryOptional) error
- type LogNoteHttpService
- func (s *LogNoteHttpService) Add(entryID int64, note models.Note) (int64, error)
- func (s *LogNoteHttpService) Delete(entryID int64, noteID int64) error
- func (s *LogNoteHttpService) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)
- func (s *LogNoteHttpService) ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)
- func (s *LogNoteHttpService) Update(entryID int64, noteID int64, update models.NoteOptional) error
- type OptionalNumber
- type Request
- type RequestBase
- type ServerResponse
- type TodoRecordStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHappeningService ¶ added in v0.0.15
func NewHappeningService(client *Client) storage.HappeningService
func NewLogEntryService ¶
func NewLogEntryService(client *Client) storage.LogEntryService
func NewLogNoteService ¶
func NewLogNoteService(client *Client) storage.LogNoteService
Types ¶
type HappeningHttpService ¶ added in v0.0.15
type HappeningHttpService struct {
// contains filtered or unexported fields
}
HappeningHttpService implements storage.HappeningService
func (*HappeningHttpService) Delete ¶ added in v0.0.15
func (s *HappeningHttpService) Delete(ctx context.Context, id int64) error
func (*HappeningHttpService) List ¶ added in v0.0.15
func (s *HappeningHttpService) List(options storage.HappeningListOptions) ([]*models.Happening, int64, error)
type LogEntryHttpService ¶
type LogEntryHttpService struct {
// contains filtered or unexported fields
}
LogEntryHttpService implements storage.LogEntryService
func (*LogEntryHttpService) Add ¶
func (s *LogEntryHttpService) Add(entry models.LogEntry) (int64, error)
func (*LogEntryHttpService) Delete ¶
func (s *LogEntryHttpService) Delete(id int64) error
func (*LogEntryHttpService) List ¶
func (s *LogEntryHttpService) List(options storage.LogEntryListOptions) ([]models.LogEntry, int64, error)
func (*LogEntryHttpService) Move ¶
func (s *LogEntryHttpService) Move(id int64, newParentID int64) error
func (*LogEntryHttpService) Update ¶
func (s *LogEntryHttpService) Update(id int64, update models.LogEntryOptional) error
type LogNoteHttpService ¶
type LogNoteHttpService struct {
// contains filtered or unexported fields
}
LogNoteHttpService implements storage.LogNoteService
func (*LogNoteHttpService) Delete ¶
func (s *LogNoteHttpService) Delete(entryID int64, noteID int64) error
func (*LogNoteHttpService) List ¶
func (s *LogNoteHttpService) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)
func (*LogNoteHttpService) ListForEntries ¶
func (*LogNoteHttpService) Update ¶
func (s *LogNoteHttpService) Update(entryID int64, noteID int64, update models.NoteOptional) error
type OptionalNumber ¶ added in v0.0.15
type OptionalNumber string
OptionalNumber represents an optional number that can be null, empty string, or a number
func (OptionalNumber) Int64 ¶ added in v0.0.15
func (c OptionalNumber) Int64() (int64, error)
func (*OptionalNumber) UnmarshalJSON ¶ added in v0.0.15
func (c *OptionalNumber) UnmarshalJSON(data []byte) error
type Request ¶ added in v0.0.15
type Request struct {
*RequestBase
TodoID OptionalNumber `json:"todoID"`
ThreadForID OptionalNumber `json:"threadForID"`
TodoStatus TodoRecordStatus `json:"todoStatus"`
}
Request replicates ListHappeningReq from lifelog
type RequestBase ¶ added in v0.0.15
type RequestBase struct {
Search string `json:"search"`
ID int64 `json:"id"`
IDs []int64 `json:"ids"`
ContextBefore int `json:"contextBefore"`
ContextAhead int `json:"contextAhead"`
IncludeAutogen string `json:"includeAutogen"`
NewerThanID int64 `json:"newerThanID"`
NeedCollections bool `json:"needCollections"`
CollectionIDs []int64 `json:"collectionIDs"`
ThreadID int64 `json:"threadID"`
Offset int `json:"offset"`
Limit int `json:"limit"`
}
RequestBase replicates ListHappeningReqBase from lifelog
type ServerResponse ¶
type ServerResponse struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data json.RawMessage `json:"data"`
}
ServerResponse wraps all server responses
type TodoRecordStatus ¶ added in v0.0.15
type TodoRecordStatus string
TodoRecordStatus represents the status of a todo record
const ( TodoRecordStatus_Init TodoRecordStatus = "" TodoRecordStatus_Doing TodoRecordStatus = "doing" TodoRecordStatus_Pending TodoRecordStatus = "pending" TodoRecordStatus_Pause TodoRecordStatus = "pause" TodoRecordStatus_Expire TodoRecordStatus = "expire" TodoRecordStatus_Done TodoRecordStatus = "done" TodoRecordStatus_Archive TodoRecordStatus = "archived" )
Click to show internal directories.
Click to hide internal directories.