Documentation ¶
Index ¶
- type Storage
- func (s *Storage) Banner(ctx context.Context, slotID, groupID int) (int, error)
- func (s *Storage) BannerOff(ctx context.Context, slotID, bannerID int) error
- func (s *Storage) BannerOn(ctx context.Context, slotID, bannerID int) error
- func (s *Storage) Close() error
- func (s *Storage) Connect(ctx context.Context) error
- func (s *Storage) IncClickCount(ctx context.Context, slotID, bannerID, groupID int) error
- func (s *Storage) IncViewCount(ctx context.Context, slotID, bannerID, groupID int) error
- func (s *Storage) Stats(ctx context.Context, slotID, groupID int) (storage.Stats, 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
}
Storage на базе SQLite предназначен для разработки и тестирования работы алгоритма ротации баннеров.
func NewSQLiteStorage ¶
func (*Storage) IncClickCount ¶
func (*Storage) IncViewCount ¶
Click to show internal directories.
Click to hide internal directories.