Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultPageSize = 4
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogStore ¶
type BlogStore interface {
GetCategories() ([]Category, error)
GetBlogs(offset, limit int, searchQuery, category string) ([]Blog, int, error)
GetLatestBlogs() ([]Blog, error)
GetBlogByID(blogID, userID int) (*Blog, error)
CreateBlog(blog Blog) (int, error)
CreateLike(userID, blogID, value int) error
UpdateLike(userID, blogID, value int) error
GetBlogLikes(userID, blogID int) (*Likes, error)
}
type CommentStore ¶
type S3Uploader ¶
Click to show internal directories.
Click to hide internal directories.