data

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 9 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) (int64, 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) Get added in v0.0.12

func (m *LogManager) Get(id int64) (*models.LogEntryView, error)

func (*LogManager) GetTree added in v0.0.12

func (m *LogManager) GetTree(ctx context.Context, id int64, includeHistory bool) (*models.LogEntryView, error)

GetTree loads all descendants of a given root ID, with optional history entries Returns a single LogEntryView containing all children

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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