Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserReader int8 = 1 UserAuthor int8 = 3 UserAdmin int8 = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpandedPost ¶
type ExpandedPost struct { Data SummarizedPost `json:"data"` Body string `datastore:",noindex" json:"body"` Comments []Comment `json:"comments"` }
type SummarizedPost ¶
type SummarizedPost struct { Title string `json:"title"` Slug string `json:"slug"` Summary string `datastore:",noindex" json:"summary"` CreatedAt time.Time `json:"createdAt"` PostedAt time.Time `json:"postedAt"` UpdatedAt time.Time `json:"updatedAt"` AuthorId string `json:"authorId"` CategoryId string `json:"categoryId"` Tags []Tag `json:"tags"` }
type User ¶
type User struct { Username string `datastore:"-", json:"username"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email"` Password []byte `datastore:",noindex" json:"-"` Level int8 `json:"-"` Website string `datastore:",noindex" json:"website,omitempty"` Moto string `datastore:",noindex" json:"moto,omitempty"` }
Click to show internal directories.
Click to hide internal directories.