Documentation
¶
Index ¶
- func LoadConfig() (*models.Config, error)
- func SaveConfig(conf *models.Config) error
- type LogManager
- func (m *LogManager) Add(entry models.LogEntry) (int64, error)
- func (m *LogManager) AddNote(entryID int64, note models.Note) error
- func (m *LogManager) Delete(id int64) error
- func (m *LogManager) DeleteNote(entryID int64, noteID int64) error
- func (m *LogManager) Init() error
- func (m *LogManager) InitWithHistory(showHistory bool) error
- func (m *LogManager) Move(id int64, newParentID int64) error
- func (m *LogManager) Update(id int64, entry models.LogEntryOptional) error
- func (m *LogManager) UpdateNote(entryID int64, noteID int64, note models.NoteOptional) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func SaveConfig ¶
Types ¶
type LogManager ¶
type LogManager struct {
LogEntryService storage.LogEntryService
LogNoteService storage.LogNoteService
Entries []*models.LogEntryView
}
func NewLogManager ¶
func NewLogManager(logEntryService storage.LogEntryService, logNoteService storage.LogNoteService) *LogManager
func (*LogManager) Delete ¶
func (m *LogManager) Delete(id int64) error
func (*LogManager) DeleteNote ¶
func (m *LogManager) DeleteNote(entryID int64, noteID int64) error
func (*LogManager) Init ¶
func (m *LogManager) Init() error
Init initializes with default behavior (no history)
func (*LogManager) InitWithHistory ¶ added in v0.0.4
func (m *LogManager) InitWithHistory(showHistory bool) error
func (*LogManager) Move ¶ added in v0.0.9
func (m *LogManager) Move(id int64, newParentID int64) error
func (*LogManager) Update ¶
func (m *LogManager) Update(id int64, entry models.LogEntryOptional) error
func (*LogManager) UpdateNote ¶
func (m *LogManager) UpdateNote(entryID int64, noteID int64, note models.NoteOptional) error
Click to show internal directories.
Click to hide internal directories.