Documentation ¶
Index ¶
- func DeletePostById(id int64) error
- func DeletePostTagsForPostId(post_id int64) error
- func Initialize() error
- func InsertPost(title []byte, slug string, markdown []byte, html []byte, featured bool, ...) (int64, error)
- func InsertPostTag(post_id int64, tag_id int64) error
- func InsertRoleUser(role_id int, user_id int64) error
- func InsertTag(name []byte, slug string, created_at time.Time, created_by int64) (int64, error)
- func InsertUser(name []byte, slug string, password string, email []byte, image []byte, ...) (int64, error)
- func RetrieveActiveTheme() (*string, error)
- func RetrieveBlog() (*structure.Blog, error)
- func RetrieveHashedPasswordForUser(name []byte) ([]byte, error)
- func RetrieveNumberOfPosts() (int64, error)
- func RetrieveNumberOfPostsByTag(tag_id int64) (int64, error)
- func RetrieveNumberOfPostsByUser(user_id int64) (int64, error)
- func RetrievePostById(id int64) (*structure.Post, error)
- func RetrievePostBySlug(slug string) (*structure.Post, error)
- func RetrievePostsByTag(tag_id int64, limit int64, offset int64) ([]structure.Post, error)
- func RetrievePostsByUser(user_id int64, limit int64, offset int64) ([]structure.Post, error)
- func RetrievePostsForApi(limit int64, offset int64) ([]structure.Post, error)
- func RetrievePostsForIndex(limit int64, offset int64) ([]structure.Post, error)
- func RetrieveTag(tagId int64) (*structure.Tag, error)
- func RetrieveTagBySlug(slug string) (*structure.Tag, error)
- func RetrieveTagIdBySlug(slug string) (int64, error)
- func RetrieveTags(postId int64) ([]structure.Tag, error)
- func RetrieveUser(id int64) (*structure.User, error)
- func RetrieveUserByName(name []byte) (*structure.User, error)
- func RetrieveUserBySlug(slug string) (*structure.User, error)
- func RetrieveUsersCount() int
- func UpdateActiveTheme(activeTheme string, updated_at time.Time, updated_by int64) error
- func UpdateLastLogin(logInDate time.Time, userId int64) error
- func UpdatePost(id int64, title []byte, slug string, markdown []byte, html []byte, ...) error
- func UpdateSettings(title []byte, description []byte, logo []byte, cover []byte, ...) error
- func UpdateUser(id int64, name []byte, slug string, email []byte, image []byte, cover []byte, ...) error
- func UpdateUserPassword(id int64, password string, updated_at time.Time, updated_by int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePostById ¶
func DeletePostTagsForPostId ¶
func Initialize ¶
func Initialize() error
func InsertPost ¶
func InsertPostTag ¶
func InsertRoleUser ¶
func InsertUser ¶
func RetrieveActiveTheme ¶
func RetrieveBlog ¶
func RetrieveNumberOfPosts ¶
func RetrievePostsByTag ¶
func RetrievePostsByUser ¶
func RetrievePostsForApi ¶
func RetrievePostsForIndex ¶
func RetrieveTagIdBySlug ¶
func RetrieveUsersCount ¶
func RetrieveUsersCount() int
func UpdateActiveTheme ¶ added in v0.1.6
func UpdateLastLogin ¶ added in v0.1.7
func UpdatePost ¶
func UpdateSettings ¶
func UpdateUser ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.