Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDFromContext ¶
FromContext reads a note ID from the given Context, if it is set.
func NewContext ¶
NewContext creates a new Context including the given Note and returns it.
Types ¶
type Note ¶
type Note struct { ID uuid.UUID `json:"id" xml:"id,attr" bson:"_id"` Folder string `json:"path" xml:"folder,attr,omitempty" storm:"index"` Title string `json:"title" xml:"Meta>Title"` Owner uuid.UUID `json:"owner" xml:"Meta>Owner" storm:"index"` Created time.Time `json:"created" xml:"Meta>Created"` Modified time.Time `json:"modified" xml:"Meta>Modified" storm:"index"` Tags []string `json:"tags" xml:"Meta>Tags>Tag,omitempty" storm:"index"` Body string `json:"body"` HTMLBody string `json:"html" xml:"html"` }
Note is a specific user-owned document.
func FromContext ¶
FromContext reads a Note from the given Context, if it is set.
func WelcomeNote ¶
WelcomeNote creates a new welcome note for the given user.
Click to show internal directories.
Click to hide internal directories.