Documentation ¶
Index ¶
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) Collect(record collector.Record) error
- func (s *Storage) CountNotUseCoupon(cid int64) (uint64, error)
- func (s *Storage) GetChat() (a []int64, err error)
- func (s *Storage) GetCountUser() (int, error)
- func (s *Storage) GetNotUseCoupon(cid int64) ([]collector.Record, error)
- func (s *Storage) GetNotUseCouponCount(cid, count int64) ([]collector.Record, error)
- func (s *Storage) GetUnsentNotification() ([]model.Notification, error)
- func (s *Storage) LoadCollect() (map[string]collector.Record, error)
- func (s *Storage) MarkAsRead(cid int64, rr []collector.Record) error
- func (s *Storage) MarkSentNotification(id int64) error
- func (s *Storage) NewChat(chat *tgbotapi.Chat) error
- func (s *Storage) NewMessage(msg *tgbotapi.Message) error
- func (s *Storage) UpdChatActivity(cid int64, act bool) 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 (*Storage) GetCountUser ¶
func (*Storage) GetNotUseCoupon ¶
func (*Storage) GetNotUseCouponCount ¶
func (*Storage) GetUnsentNotification ¶
func (s *Storage) GetUnsentNotification() ([]model.Notification, error)
func (*Storage) MarkSentNotification ¶
Click to show internal directories.
Click to hide internal directories.