Documentation
¶
Index ¶
- func NewLogEntryService(client *Client) storage.LogEntryService
- func NewLogNoteService(client *Client) storage.LogNoteService
- type Client
- 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 ServerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogEntryService ¶
func NewLogEntryService(client *Client) storage.LogEntryService
func NewLogNoteService ¶
func NewLogNoteService(client *Client) storage.LogNoteService
Types ¶
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 ServerResponse ¶
type ServerResponse struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data json.RawMessage `json:"data"`
}
ServerResponse wraps all server responses
Click to show internal directories.
Click to hide internal directories.