data

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() (*models.Config, error)

func SaveConfig

func SaveConfig(conf *models.Config) error

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) Add

func (m *LogManager) Add(entry models.LogEntry) error

func (*LogManager) AddNote

func (m *LogManager) AddNote(entryID int64, note models.Note) error

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) Update

func (m *LogManager) Update(id int64, entry models.LogEntryOptional) error

func (*LogManager) UpdateNote

func (m *LogManager) UpdateNote(entryID int64, noteID int64, note models.Note) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL