Documentation ¶
Index ¶
- type Storage
- func (storage *Storage) CountChatsWithProfitability(ctx context.Context, profitability model.ProfitabilitySettingsType) (int64, error)
- func (storage *Storage) CreateChat(ctx context.Context, chat model.Chat) error
- func (storage *Storage) DeleteChat(ctx context.Context, chatID model.ChatID) error
- func (storage *Storage) GetChatByChatID(ctx context.Context, chatID model.ChatID) (*model.Chat, error)
- func (storage *Storage) GetChatsWithProfitability(ctx context.Context, settingsType model.ProfitabilitySettingsType, ...) ([]model.Chat, error)
- func (storage *Storage) UpdateChatProfitability(ctx context.Context, chatID model.ChatID, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewChatStorage ¶
func (*Storage) CountChatsWithProfitability ¶
func (*Storage) CreateChat ¶
func (*Storage) DeleteChat ¶
func (*Storage) GetChatByChatID ¶
func (*Storage) GetChatsWithProfitability ¶
func (*Storage) UpdateChatProfitability ¶
Click to show internal directories.
Click to hide internal directories.