Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrNoRecord = modelsError("no matching record found")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogPost ¶
type BlogPost struct { ID int `json:"id"` Slug string `json:"slug"` Title string `json:"title"` Body []byte `json:"-"` ParsedBody string `json:"body"` Tags []BlogTag `json:"tags,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` IsCodeSnippet bool `json:"is_code_snippet"` }
type BlogPostFeedEntry ¶
type BlogPostModel ¶
func (*BlogPostModel) GetFeedPosts ¶
func (m *BlogPostModel) GetFeedPosts(onlyCodeSnippets bool) ([]BlogPostFeedEntry, error)
func (*BlogPostModel) GetPostTags ¶
func (m *BlogPostModel) GetPostTags(id int) ([]BlogTag, error)
type BlogTagModel ¶
func (*BlogTagModel) GetAll ¶
func (m *BlogTagModel) GetAll() ([]BlogTag, error)
Click to show internal directories.
Click to hide internal directories.