Documentation ¶
Index ¶
- type Repository
- func (repo Repository) CreatePostsInThread(thread models.Thread, posts models.Posts) (insertedPosts models.Posts, err error)
- func (repo Repository) GetPostByID(id int64) (models.Post, error)
- func (repo Repository) GetSortedPostsByThreadSlugOrID(threadID int32, sincePostID *int64, sort post.PostsSortType, desc bool, ...) (models.Posts, error)
- func (repo Repository) UpdatePostByID(post models.Post) (models.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *pgxpool.Pool) Repository
func (Repository) CreatePostsInThread ¶
func (Repository) GetPostByID ¶
func (repo Repository) GetPostByID(id int64) (models.Post, error)
func (Repository) GetSortedPostsByThreadSlugOrID ¶
func (repo Repository) GetSortedPostsByThreadSlugOrID(threadID int32, sincePostID *int64, sort post.PostsSortType, desc bool, limit int64) (models.Posts, error)
func (Repository) UpdatePostByID ¶
Click to show internal directories.
Click to hide internal directories.