Documentation ¶
Index ¶
- func Clear()
- func Close()
- func CountForums() (count int32)
- func CountPosts() (count int64)
- func CountThreads() (count int32)
- func CountUsers() (count int32)
- func CreateForum(srcForum *models.Forum) (forum *models.Forum, status int)
- func CreatePosts(srcPosts []models.Post, threadSlug string) (posts []models.Post, status int)
- func CreateThread(srcThread *models.Thread) (threadNew *models.Thread, status int)
- func CreateUser(profile *models.User) (users []models.User, ok bool)
- func GetForumDetails(slug string) (forum *models.Forum, status int)
- func GetForumUsers(slug string, limit int32, sinceNickname string, desc bool) (users []models.User, status int)
- func GetPost(postId int64, withAuthor bool, withThread bool, withForum bool) (postInfo *models.PostFull, status int)
- func GetPosts(threadSlug string, limit int32, since int, desc bool, sortString string) (posts []models.Post, status int)
- func GetThread(threadSlug string) (thread *models.Thread, status int)
- func GetThreads(slug string, limit int32, sinceString string, desc bool) (threads []models.Thread, status int)
- func GetUser(nickname string) (user *models.User, ok bool)
- func InitDB(config pgx.ConnConfig)
- func ModifyPost(postUpdate *models.PostUpdate, postId int64) (post *models.Post, status int)
- func ModifyThread(threadUpdate *models.ThreadUpdate, threadSlug string) (thread *models.Thread, status int)
- func UpdateUser(srcUser *models.User) (user *models.User, status int)
- func VoteThread(vote *models.Vote, threadSlug string) (thread *models.Thread, status int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountForums ¶
func CountForums() (count int32)
func CountPosts ¶
func CountPosts() (count int64)
func CountThreads ¶
func CountThreads() (count int32)
func CountUsers ¶
func CountUsers() (count int32)
func CreatePosts ¶
func CreateThread ¶
func GetForumUsers ¶
func GetThreads ¶
func InitDB ¶
func InitDB(config pgx.ConnConfig)
func ModifyPost ¶
func ModifyThread ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.