Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoValue = errors.New("no id given") ErrNotFound = errors.New("item not found") )
Functions ¶
Types ¶
type Result ¶
type Result struct {
Item domain.Item `json:"item"`
Path string `json:"path"`
Content string `json:"content,omitempty" binding:"optional"`
Pinned bool `json:"pinned,omitempty" binding:"optional"`
Readonly bool `json:"readonly,omitempty" binding:"optional"` // locked: PATCH refuses its content and tags
ForkOf string `json:"fork_of,omitempty" binding:"optional"` // a fork: the note it merges back into
Tags []string `json:"tags,omitzero" binding:"optional"`
Children []domain.Item `json:"children,omitzero" binding:"optional"`
}
Result is the item and its path, with its content and tag values for a note, its direct children for a folder.
Click to show internal directories.
Click to hide internal directories.