Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Username string `db:"username" json:"username"` Password string `db:"password" json:"password"` }
Account is used
type Note ¶
type Note struct { ID int64 `db:"id"` Title string `db:"title"` Memo string `db:"memo"` Created time.Time `db:"created"` LastUpdated time.Time `db:"lastUpdated"` Tags map[string]bool NotebookID int64 `db:"notebook_id"` }
Note is the note we want to keep.
func (*Note) RemoveTags ¶
RemoveTags removes tags (also updates the LastUpdate value)
func (*Note) UpdateMemo ¶
UpdateMemo updates the memo (also updates the LastUpdate value)
func (*Note) UpdateNotebook ¶
UpdateNotebook updates the notebook this note belongs to (also updates the LastUpdate value)
func (*Note) UpdateTags ¶
UpdateTags updates tags (also updates the LastUpdate value)
func (*Note) UpdateTitle ¶
UpdateTitle updates the title of the note (also updates the LastUpdate value)
type Notebook ¶
Notebook holds a list of "similar" notes
func (*Notebook) AddNote ¶
AddNote adds note to Notebook list, also update the note with current Notebook
func (*Notebook) RemoveNote ¶
RemoveNote remove note from Notebook list. WARNING: when removing a note we should add it to a default notebook.