Documentation
¶
Index ¶
- func Authenticate(user models.Username, hash models.Hash) (int32, error)
- func Connect(creds string, address string, database string) error
- func CreateUser(user models.Username, hash models.Hash) error
- func DeletePost(pid int32) error
- func DeleteReply(cid int32) error
- func GetCommentPoster(cid int32) (int32, error)
- func GetComments(post_id int32) ([]models.Comment, error)
- func GetPost(post_id int32) (models.Post, error)
- func GetPostMD(post_id int32) (models.Post, error)
- func GetPostOP(pid int32) (int32, string, string, error)
- func GetSectionPosts(section string) ([]models.PostListing, error)
- func GetTheme(user_id int32) (models.Theme, error)
- func GetUser(user_id int32) (models.Userlisted, error)
- func LikeUnlike(user_id int32, post_id int32) error
- func Liked(user_id int32, post_id int32) (bool, error)
- func Likes(user_id int32) ([]models.PostListing, error)
- func MostLiked(section models.Section) ([]models.PostListing, error)
- func NewNotification(to_uid int32, from_uid int32, message string) error
- func NewPost(user_id int32, section string, status string, title string, md string, ...) (int32, error)
- func Notifications(user_id int32) ([]models.Notification, error)
- func PostComment(user_id int32, parent_post int32, comment_post int32, md string, html string) (int32, error)
- func RecentPosts() ([]models.PostListing, error)
- func RecentUserPosts(user_id int32) ([]models.PostListing, error)
- func Search(search_qry string) ([]models.PostListing, error)
- func SetBio(user_id int32, bio string) error
- func SetColor(user_id int32, fg string, bg string) error
- func SetPFP(user_id int32, filename string) error
- func SetTheme(user_id int32, primary_text string, secondary_text string, background string, ...) error
- func UpdatePost(post_id int32, title string, md string, html string, section string) error
- func UpdatePostStatus(post_id int32, status string) error
- func UserExists(username models.Username) int32
- func UserPosts(user_id int32, status string) ([]models.PostListing, error)
- func Userinfo(user_id int32) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePost ¶
func DeleteReply ¶
func GetCommentPoster ¶
func GetSectionPosts ¶
func GetSectionPosts(section string) ([]models.PostListing, error)
func LikeUnlike ¶
func NewPost ¶
func NewPost(user_id int32, section string, status string, title string, md string, html string) (int32, error)
returns post id and error
func Notifications ¶
func Notifications(user_id int32) ([]models.Notification, error)
func PostComment ¶
func RecentPosts ¶
func RecentPosts() ([]models.PostListing, error)
func RecentUserPosts ¶
func RecentUserPosts(user_id int32) ([]models.PostListing, error)
func UpdatePost ¶
func UpdatePostStatus ¶
func UserExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.