memory

package
v0.0.0-...-18c62bb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundErr = errors.New("Note not found")

Functions

This section is empty.

Types

type NotesStore

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

func NewNotesStore

func NewNotesStore() *NotesStore

func (*NotesStore) DeleteNote

func (ns *NotesStore) DeleteNote(id ulid.ULID)

func (NotesStore) GetLen

func (ns NotesStore) GetLen() int

func (NotesStore) GetNote

func (ns NotesStore) GetNote(id ulid.ULID) (*app.Note, error)

func (NotesStore) GetNotes

func (ns NotesStore) GetNotes(params openapi.GetNotesParams) []app.Note

func (*NotesStore) SaveNote

func (ns *NotesStore) SaveNote(note app.Note)

func (*NotesStore) UpdateNote

func (ns *NotesStore) UpdateNote(note app.Note)

Jump to

Keyboard shortcuts

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