Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRepository ¶
type CommentRepository struct {
// contains filtered or unexported fields
}
func NewCommentRepository ¶
func NewCommentRepository(sqlClient *sqlx.DB) *CommentRepository
func (CommentRepository) GetByID ¶
func (r CommentRepository) GetByID(commentId blogo.CommentId) *blogo.Comment
GetByID will get a parent comments and all of its child down to N level
func (CommentRepository) GetByPostID ¶
func (r CommentRepository) GetByPostID(postId blogo.PostId) []*blogo.Comment
GetByPostID will get all comments by its post id
func (CommentRepository) InsertComment ¶
func (r CommentRepository) InsertComment(comment *blogo.Comment) error
type PostRepository ¶
type PostRepository struct {
// contains filtered or unexported fields
}
func NewPostRepository ¶
func NewPostRepository(sqlClient *sqlx.DB) *PostRepository
func (PostRepository) InsertPost ¶
func (r PostRepository) InsertPost(post *blogo.Post) error
type ReactRepository ¶
type ReactRepository struct {
// contains filtered or unexported fields
}
func NewReactRepository ¶
func NewReactRepository(sqlClient *sqlx.DB) *ReactRepository
func (ReactRepository) GetByPostID ¶
func (r ReactRepository) GetByPostID(postID blogo.PostId) []*blogo.ReactViews
func (ReactRepository) InsertUserReact ¶
func (r ReactRepository) InsertUserReact(react *blogo.React) error
Click to show internal directories.
Click to hide internal directories.