Documentation ¶
Index ¶
- Variables
- type NotesStore
- func (ns *NotesStore) DeleteNote(id ulid.ULID)
- func (ns NotesStore) GetLen() int
- func (ns NotesStore) GetNote(id ulid.ULID) (*app.Note, error)
- func (ns NotesStore) GetNotes(params openapi.GetNotesParams) []app.Note
- func (ns *NotesStore) SaveNote(note app.Note)
- func (ns *NotesStore) UpdateNote(note app.Note)
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) 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)
Click to show internal directories.
Click to hide internal directories.