Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUniqueViolation ¶
Types ¶
type ConnectionPool ¶
func NewConnectionPool ¶
func NewConnectionPool(ctx context.Context, conf config.PostgresConfig) (*ConnectionPool, error)
type GroupRepo ¶
type GroupRepo struct {
// contains filtered or unexported fields
}
func NewGroupRepo ¶
func NewGroupRepo(conn *ConnectionPool) *GroupRepo
func (*GroupRepo) CreateGroup ¶
func (*GroupRepo) GetGroupByTelegramID ¶
type MessageRepo ¶
type MessageRepo struct {
// contains filtered or unexported fields
}
func NewMessageRepo ¶
func NewMessageRepo(conn *ConnectionPool) *MessageRepo
func (*MessageRepo) CreateMessage ¶
func (*MessageRepo) GetMessagesByTopicID ¶
type TopicRepo ¶
type TopicRepo struct {
// contains filtered or unexported fields
}
func NewTopicRepo ¶
func NewTopicRepo(conn *ConnectionPool) *TopicRepo
func (*TopicRepo) CreateTopic ¶
func (*TopicRepo) DeleteTopicByThreadID ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo(conn *ConnectionPool) *UserRepo
func (*UserRepo) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.