Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorModel ¶
type ErrorModel struct { Code int `json:"code"` Err string `json:"error"` Desc string `json:"desc"` Internal interface{} `json:"internal"` }
ErrorModel stands for server error.
type Page ¶
type Page struct { Title string `json:"title` Data interface{} `json:"data"` }
Page stands for template to handle.
type Post ¶
type Post struct { Mongo `bson:"inline"` Title string `bson:"title" json:"title"` Author string `bson:"author" json:"author"` Content template.HTML `bson:"content" json:"content"` }
Post stands for post object.
Click to show internal directories.
Click to hide internal directories.