Lines Matching defs:Blog
11 type Blog struct { struct
12 ID int `jsonapi:"primary,blogs"`
13 Title string `jsonapi:"attr,title"`
14 Posts []*Post `jsonapi:"relation,posts"`
15 CurrentPost *Post `jsonapi:"relation,current_post"`
16 CurrentPostID int `jsonapi:"attr,current_post_id"`
17 CreatedAt time.Time `jsonapi:"attr,created_at"`
18 ViewCount int `jsonapi:"attr,view_count"`
38 func (blog Blog) JSONAPILinks() *jsonapi.Links {
45 func (blog Blog) JSONAPIRelationshipLinks(relation string) *jsonapi.Links {
60 func (blog Blog) JSONAPIMeta() *jsonapi.Meta {
67 func (blog Blog) JSONAPIRelationshipMeta(relation string) *jsonapi.Meta {