Documentation ¶
Index ¶
- type ChatRepository
- func (c *ChatRepository) CreateChat(ctx context.Context, id int64, chatType model.ChatType) error
- func (c *ChatRepository) DeleteChat(ctx context.Context, id int64) error
- func (c *ChatRepository) GetChatsWithNoMessageInIt(ctx context.Context, date time.Time, msg string) ([]int64, error)
- func (c *ChatRepository) GetConsumersIDs(ctx context.Context) ([]int64, error)
- func (c *ChatRepository) SafeThatMessageHadBeenSend(ctx context.Context, id int64, date time.Time, msg string) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRepository ¶
type ChatRepository struct {
// contains filtered or unexported fields
}
func NewChatRepository ¶
func NewChatRepository(pool *pgxpool.Pool, log *zap.Logger) *ChatRepository
func (*ChatRepository) CreateChat ¶
func (*ChatRepository) DeleteChat ¶
func (c *ChatRepository) DeleteChat(ctx context.Context, id int64) error
func (*ChatRepository) GetChatsWithNoMessageInIt ¶
func (*ChatRepository) GetConsumersIDs ¶
func (c *ChatRepository) GetConsumersIDs(ctx context.Context) ([]int64, error)
func (*ChatRepository) SafeThatMessageHadBeenSend ¶
Click to show internal directories.
Click to hide internal directories.