Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HappeningListOptions ¶ added in v0.0.15
type HappeningService ¶ added in v0.0.15
type HappeningService interface {
List(options HappeningListOptions) ([]*models.Happening, int64, error)
Add(ctx context.Context, happening *models.Happening) (*models.Happening, error)
Update(ctx context.Context, id int64, update *models.HappeningOptional) (*models.Happening, error)
Delete(ctx context.Context, id int64) error
}
type LogEntryListOptions ¶
type LogEntryService ¶
type LogEntryService interface {
List(options LogEntryListOptions) ([]models.LogEntry, int64, error)
Add(entry models.LogEntry) (int64, error)
Delete(id int64) error
Update(id int64, update models.LogEntryOptional) error
Move(id int64, newParentID int64) error
// GetTree loads all descendants of a given root ID, with optional history entries
GetTree(ctx context.Context, id int64, includeHistory bool) ([]models.LogEntry, error)
}
type LogNoteListOptions ¶
type LogNoteService ¶
type LogNoteService interface {
List(entryID int64, options LogNoteListOptions) ([]models.Note, int64, error)
ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)
Add(entryID int64, note models.Note) (int64, error)
Delete(entryID int64, noteID int64) error
Update(entryID int64, noteID int64, update models.NoteOptional) error
}
Click to show internal directories.
Click to hide internal directories.