Documentation ¶
Index ¶
- type BOOL
- type Category
- type CompletePost
- type CompletePostHistory
- type Config
- type Database
- func (database *Database) CreatePost(post post.Post, posted BOOL) error
- func (database *Database) GetCategoryById(category_id int64) (*Category, error)
- func (database *Database) GetCategoryByName(name string) (*Category, error)
- func (database *Database) GetCompletePost(post *Post) (*CompletePost, error)
- func (database *Database) GetDraftPosts() ([]Post, error)
- func (database *Database) GetLatestPostHistory(post *Post) (*PostHistory, error)
- func (database *Database) GetPostById(id int64) (*Post, error)
- func (database *Database) GetPostByUrlTitle(url_title string) (*Post, error)
- func (database *Database) GetPostCategoryById(id int64) (*PostCategory, error)
- func (database *Database) GetPostHistoryById(post_history_id int64) (*PostHistory, error)
- func (database *Database) GetPostHistoryCategories(post_history *PostHistory) ([]Category, error)
- func (database *Database) GetPostHistoryTags(post_history *PostHistory) ([]Tag, error)
- func (database *Database) GetTagById(tag_id int64) (*Tag, error)
- func (database *Database) GetTagByName(name string) (*Tag, error)
- func (database *Database) GetUserById(id int64) (*User, error)
- func (database *Database) GetUserByUsername(username string) (*User, error)
- type Post
- type PostCategory
- type PostHistory
- type PostTag
- type Tag
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletePost ¶
type CompletePostHistory ¶
type CompletePostHistory struct { Post *Post History *PostHistory Categories []Category Tags []Tag }
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CreatePost ¶
func (*Database) GetCategoryById ¶
func (*Database) GetCategoryByName ¶
func (*Database) GetCompletePost ¶
func (database *Database) GetCompletePost(post *Post) (*CompletePost, error)
func (*Database) GetDraftPosts ¶
func (*Database) GetLatestPostHistory ¶
func (database *Database) GetLatestPostHistory(post *Post) (*PostHistory, error)
func (*Database) GetPostByUrlTitle ¶
func (*Database) GetPostCategoryById ¶
func (database *Database) GetPostCategoryById(id int64) (*PostCategory, error)
func (*Database) GetPostHistoryById ¶
func (database *Database) GetPostHistoryById(post_history_id int64) (*PostHistory, error)
func (*Database) GetPostHistoryCategories ¶
func (database *Database) GetPostHistoryCategories(post_history *PostHistory) ([]Category, error)
func (*Database) GetPostHistoryTags ¶
func (database *Database) GetPostHistoryTags(post_history *PostHistory) ([]Tag, error)
type PostCategory ¶
type PostHistory ¶
Click to show internal directories.
Click to hide internal directories.