Documentation ¶
Index ¶
- func CreateCategory(name string, color string) (int64, error)
- func CreateFollow(userID uint32, threadID uint32) (int64, error)
- func CreatePost(userID uint32, threadID uint32, content string) (int64, error)
- func CreateThread(userID uint32, title string, categoryID uint32) (int64, error)
- func CreateThreadFollowNotification(userID uint32, content string, link string, threadID uint32, postID uint32) (int64, error)
- func CreateUser(username string, email string, password string, access int) (int64, error)
- func DeleteCategory(id uint32) error
- func DeleteFollow(userID uint32, threadID uint32) error
- func DeleteFollowsByThreadID(threadID uint32) error
- func DeleteNotificationsByThreadID(threadID uint32) error
- func DeletePostsByThreadID(threadID uint32) error
- func DeleteThread(id uint32) error
- func GetAllThreadsByCategoryID(categoryID uint32) ([]*models.Thread, error)
- func GetCategories() ([]*models.Category, error)
- func GetFollow(userID uint32, threadID uint32) (*models.Follow, error)
- func GetFollowsByThreadID(threadID uint32) ([]*models.Follow, error)
- func GetNotificationsByUserID(userID uint32, page uint32, pageSize uint32) ([]*models.Notification, error)
- func GetPost(id uint32) (*models.Post, error)
- func GetPostsAndThreadsByUserID(userID uint32, page uint32, pageSize uint32) ([]*models.PostAndThread, error)
- func GetPostsByThreadID(threadID uint32, page uint32, pageSize uint32) ([]*models.Post, error)
- func GetPostsByUserID(userID uint32, page uint32, pageSize uint32) ([]*models.Post, error)
- func GetSettings() (map[string]string, error)
- func GetThread(id uint32) (*models.Thread, error)
- func GetThreads(page uint32, pageSize uint32) ([]*models.Thread, error)
- func GetThreadsByCategoryID(categoryID uint32, page uint32, pageSize uint32) ([]*models.Thread, error)
- func GetUnseenNotificationCountByUserID(userID uint32) (int, error)
- func GetUser(id uint32) (*models.User, error)
- func GetUserByUsername(username string) (*models.User, error)
- func MarkNotificationsSeen(userID uint32, IDs []int) error
- func UpdatePostContent(id uint32, content string) error
- func UpdateSettings(settings map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateThread ¶
func CreateUser ¶
func DeleteCategory ¶
func DeleteFollow ¶
func DeleteFollowsByThreadID ¶
func DeletePostsByThreadID ¶
func DeleteThread ¶
func GetCategories ¶
func GetPostsByThreadID ¶
func GetPostsByUserID ¶
func GetSettings ¶
func GetThreadsByCategoryID ¶
func MarkNotificationsSeen ¶
func UpdatePostContent ¶
func UpdateSettings ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.