Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNote ¶
func UpdateNote ¶
Types ¶
type Note ¶
type Note struct { ID primitive.ObjectID `json:"id" bson:"_id"` UUID string `json:"uuid"` Title string `json:"title"` Description string `json:"description"` Content string `json:"content"` Authors []string `json:"authors"` Topics []string `json:"topics"` Tags []string `json:"tags"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` PublishedAt time.Time `json:"published_at"` }
func CreateNote ¶
func (*Note) AssignUUID ¶
func (n *Note) AssignUUID()
func (*Note) InitialDates ¶
func (n *Note) InitialDates()
func (*Note) TouchUpdatedAt ¶
func (n *Note) TouchUpdatedAt()
Click to show internal directories.
Click to hide internal directories.