Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB *sql.DB TokenAuth *jwtauth.JWTAuth )
Functions ¶
Types ¶
type BlogPost ¶
type BlogPost struct { ID int `json:"id",db:"id"` Title string `json:"title",db:"title"` Slug string `json:"slug",db:"slug"` Author string `json:"author",db:"author"` Content string `json:"content",db:"content"` TimePublished time.Time `json:"time_published", db:"time_published"` Modified bool `json:"modified", db:"modified"` TimeModified time.Time `json:"last_modified", db:"last_modified"` }
type Comment ¶ added in v1.1.0
type Comment struct { ID int `json:"id",db:"id"` Parent string `json:"post_id",db:"parent"` Author string `json:"author",db:"author"` Content string `json:"content",db:"content"` TimePublished time.Time `json:"time_published", db:"time_published"` Modified bool `json:"modified", db:"modified"` TimeModified time.Time `json:"last_modified", db:"last_modified"` }
type NewBlogPost ¶
type ReferenceId ¶ added in v1.1.0
type ReferenceId struct {
LastID int `json:"last_id"`
}
type ReturnMessage ¶ added in v1.1.0
type ReturnSuccess ¶
Click to show internal directories.
Click to hide internal directories.