memory

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEntryService

func NewLogEntryService() storage.LogEntryService

func NewLogNoteService

func NewLogNoteService() storage.LogNoteService

Types

type LogEntryMemoryStore

type LogEntryMemoryStore struct {
	*MemoryStore
}

func (*LogEntryMemoryStore) Add

func (les *LogEntryMemoryStore) Add(entry models.LogEntry) (int64, error)

func (*LogEntryMemoryStore) Delete

func (les *LogEntryMemoryStore) Delete(id int64) error

func (*LogEntryMemoryStore) List

LogEntry service methods

func (*LogEntryMemoryStore) Move added in v0.0.9

func (les *LogEntryMemoryStore) Move(id int64, newParentID int64) error

func (*LogEntryMemoryStore) Update

func (les *LogEntryMemoryStore) Update(id int64, update models.LogEntryOptional) error

type LogNoteMemoryStore

type LogNoteMemoryStore struct {
	*MemoryStore
}

func (*LogNoteMemoryStore) Add

func (lns *LogNoteMemoryStore) Add(entryID int64, note models.Note) (int64, error)

func (*LogNoteMemoryStore) Delete

func (lns *LogNoteMemoryStore) Delete(entryID int64, noteID int64) error

func (*LogNoteMemoryStore) List

func (lns *LogNoteMemoryStore) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)

LogNote service methods

func (*LogNoteMemoryStore) ListForEntries added in v0.0.10

func (lns *LogNoteMemoryStore) ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)

func (*LogNoteMemoryStore) Update

func (lns *LogNoteMemoryStore) Update(entryID int64, noteID int64, update models.NoteOptional) error

type MemoryStore

type MemoryStore struct {
	// contains filtered or unexported fields
}

func New

func New() *MemoryStore

Jump to

Keyboard shortcuts

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