Documentation
¶
Index ¶
- type Dumper
- type ThreadsRepository
- func (r *ThreadsRepository) AppendThread(ctx context.Context, id, userID, parentID, nextID, prevID int64, ...) (err error)
- func (r *ThreadsRepository) CountMessages(ctx context.Context, id, userID int64, privateMessage *bool) (total int32, err error)
- func (r *ThreadsRepository) CountThreads(ctx context.Context, id, userID int64) (total int32, err error)
- func (r *ThreadsRepository) DeleteThread(ctx context.Context, id, userID int64) (err error)
- func (r *ThreadsRepository) ListMessages(ctx context.Context, userID, parentID int64, limit, offset int32, asc bool, ...) (list []*model.Thread, isLastPage bool, err error)
- func (r *ThreadsRepository) ListThreads(ctx context.Context, userID, parentID int64, limit, offset int32, asc bool) (list []*model.Thread, isLastPage bool, err error)
- func (r *ThreadsRepository) PrivateMessages(ctx context.Context, ids []int64, userID int64) (err error)
- func (r *ThreadsRepository) PrivateThread(ctx context.Context, id, userID int64, updatedAt string) (err error)
- func (r *ThreadsRepository) PublishMessages(ctx context.Context, ids []int64, userID int64) (err error)
- func (r *ThreadsRepository) PublishThread(ctx context.Context, id, userID int64, updatedAt string) (err error)
- func (r *ThreadsRepository) ReadThreadByID(ctx context.Context, id, userID int64) (thread *model.Thread, err error)
- func (r *ThreadsRepository) ReadThreadByName(ctx context.Context, name string, userID int64) (thread *model.Thread, err error)
- func (r *ThreadsRepository) ReorderThread(ctx context.Context, id, userID, parentID, nextID, prevID int64, ...) (err error)
- func (r *ThreadsRepository) ResolveThread(ctx context.Context, id, userID int64) (path []*api.PathStep, err error)
- func (r *ThreadsRepository) UpdateThread(ctx context.Context, id, userID int64, name, description, title *string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dumper ¶
type Dumper struct {
// contains filtered or unexported fields
}
type ThreadsRepository ¶
type ThreadsRepository struct {
// contains filtered or unexported fields
}
func NewThreadsRepository ¶
func NewThreadsRepository(pool *pgxpool.Pool, tableName string) *ThreadsRepository
func (*ThreadsRepository) AppendThread ¶
func (*ThreadsRepository) CountMessages ¶
func (*ThreadsRepository) CountThreads ¶
func (*ThreadsRepository) DeleteThread ¶
func (r *ThreadsRepository) DeleteThread(ctx context.Context, id, userID int64) (err error)
func (*ThreadsRepository) ListMessages ¶
func (*ThreadsRepository) ListThreads ¶
func (*ThreadsRepository) PrivateMessages ¶
func (*ThreadsRepository) PrivateThread ¶
func (*ThreadsRepository) PublishMessages ¶
func (*ThreadsRepository) PublishThread ¶
func (*ThreadsRepository) ReadThreadByID ¶
func (*ThreadsRepository) ReadThreadByName ¶
func (*ThreadsRepository) ReorderThread ¶
func (*ThreadsRepository) ResolveThread ¶
func (*ThreadsRepository) UpdateThread ¶
Click to show internal directories.
Click to hide internal directories.