forked from TcM1911/clinote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotestore.go
23 lines (22 loc) · 896 Bytes
/
notestore.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package clinote
// NotestoreClient is the interface for the notestore.
type NotestoreClient interface {
// FindNotes searches for the notes based on the filter.
FindNotes(filter *NoteFilter, offset, count int) ([]*Note, error)
// GetAllNotebooks returns all the of users notebooks.
GetAllNotebooks() ([]*Notebook, error)
// GetNotebook
GetNotebook(guid string) (*Notebook, error)
// CreateNotebook
CreateNotebook(b *Notebook, defaultNotebook bool) error
// GetNoteContent gets the note's content from the notestore.
GetNoteContent(guid string) (string, error)
// UpdateNote update's the note.
UpdateNote(note *Note) error
// DeleteNote removes a note from the user's notebook.
DeleteNote(guid string) error
// CreateNote creates a new note on the server.
CreateNote(note *Note) error
// UpdateNotebook updates the notebook on the server.
UpdateNotebook(book *Notebook) error
}