Documentation
¶
Index ¶
- func NewHappeningService(filePath string) (storage.HappeningService, error)
- func NewLogEntryService(filePath string) (storage.LogEntryService, error)
- func NewLogNoteService(filePath string) (storage.LogNoteService, error)
- type HappeningSQLiteStore
- func (hss *HappeningSQLiteStore) Add(ctx context.Context, happening *models.Happening) (*models.Happening, error)
- func (hss *HappeningSQLiteStore) Delete(ctx context.Context, id int64) error
- func (hss *HappeningSQLiteStore) List(options storage.HappeningListOptions) ([]*models.Happening, int64, error)
- func (hss *HappeningSQLiteStore) Update(ctx context.Context, id int64, update *models.HappeningOptional) (*models.Happening, error)
- type LogEntrySQLiteStore
- func (les *LogEntrySQLiteStore) Add(entry models.LogEntry) (int64, error)
- func (les *LogEntrySQLiteStore) Delete(id int64) error
- func (les *LogEntrySQLiteStore) GetTree(ctx context.Context, id int64, includeHistory bool) ([]models.LogEntry, error)
- func (les *LogEntrySQLiteStore) List(options storage.LogEntryListOptions) ([]models.LogEntry, int64, error)
- func (les *LogEntrySQLiteStore) Move(id int64, newParentID int64) error
- func (les *LogEntrySQLiteStore) Update(id int64, update models.LogEntryOptional) error
- type LogNoteSQLiteStore
- func (lns *LogNoteSQLiteStore) Add(entryID int64, note models.Note) (int64, error)
- func (lns *LogNoteSQLiteStore) Delete(entryID int64, noteID int64) error
- func (lns *LogNoteSQLiteStore) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)
- func (lns *LogNoteSQLiteStore) ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)
- func (lns *LogNoteSQLiteStore) Update(entryID int64, noteID int64, update models.NoteOptional) error
- type SQLiteStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHappeningService ¶ added in v0.0.15
func NewHappeningService(filePath string) (storage.HappeningService, error)
func NewLogEntryService ¶
func NewLogEntryService(filePath string) (storage.LogEntryService, error)
func NewLogNoteService ¶
func NewLogNoteService(filePath string) (storage.LogNoteService, error)
Types ¶
type HappeningSQLiteStore ¶ added in v0.0.15
type HappeningSQLiteStore struct {
*SQLiteStore
}
func (*HappeningSQLiteStore) Delete ¶ added in v0.0.15
func (hss *HappeningSQLiteStore) Delete(ctx context.Context, id int64) error
func (*HappeningSQLiteStore) List ¶ added in v0.0.15
func (hss *HappeningSQLiteStore) List(options storage.HappeningListOptions) ([]*models.Happening, int64, error)
Happening service methods
type LogEntrySQLiteStore ¶
type LogEntrySQLiteStore struct {
*SQLiteStore
}
func (*LogEntrySQLiteStore) Add ¶
func (les *LogEntrySQLiteStore) Add(entry models.LogEntry) (int64, error)
func (*LogEntrySQLiteStore) Delete ¶
func (les *LogEntrySQLiteStore) Delete(id int64) error
func (*LogEntrySQLiteStore) List ¶
func (les *LogEntrySQLiteStore) List(options storage.LogEntryListOptions) ([]models.LogEntry, int64, error)
LogEntry service methods
func (*LogEntrySQLiteStore) Move ¶ added in v0.0.9
func (les *LogEntrySQLiteStore) Move(id int64, newParentID int64) error
func (*LogEntrySQLiteStore) Update ¶
func (les *LogEntrySQLiteStore) Update(id int64, update models.LogEntryOptional) error
type LogNoteSQLiteStore ¶
type LogNoteSQLiteStore struct {
*SQLiteStore
}
func (*LogNoteSQLiteStore) Delete ¶
func (lns *LogNoteSQLiteStore) Delete(entryID int64, noteID int64) error
func (*LogNoteSQLiteStore) List ¶
func (lns *LogNoteSQLiteStore) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)
LogNote service methods
func (*LogNoteSQLiteStore) ListForEntries ¶ added in v0.0.10
func (*LogNoteSQLiteStore) Update ¶
func (lns *LogNoteSQLiteStore) Update(entryID int64, noteID int64, update models.NoteOptional) error
type SQLiteStore ¶
type SQLiteStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(filePath string) (*SQLiteStore, error)
func (*SQLiteStore) Close ¶
func (s *SQLiteStore) Close() error
Click to show internal directories.
Click to hide internal directories.