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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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