Documentation ¶
Index ¶
- type Impl
- func (i *Impl) DeleteNote(n Note) (err error)
- func (i *Impl) InitDB() (err error)
- func (i *Impl) InitSchema()
- func (i *Impl) ListNotes(f string) (n []Note)
- func (i *Impl) LoadNote(name string) (n Note, err error)
- func (i *Impl) NoteExists(n string) bool
- func (i *Impl) RemoveExpiredNotes() (err error)
- func (i *Impl) RenameNote(nID uint, newName string) (err error)
- func (i *Impl) SaveNote(n *Note) (err error)
- func (i *Impl) SearchNotes(f string) (n []Note)
- type Note
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
Impl represents a gorm.DB
func (*Impl) NoteExists ¶
NoteExists returns true if note exist
func (*Impl) RemoveExpiredNotes ¶
RemoveExpiredNotes searches for temporary notes older then 24 hours and removes them
func (*Impl) RenameNote ¶
RenameNote renames a notes
func (*Impl) SearchNotes ¶
SearchNotes returns a list of notes matching f
Click to show internal directories.
Click to hide internal directories.