Documentation ¶
Index ¶
- type Banner
- type BannerStorage
- func (bs *BannerStorage) AckClick(ctx context.Context, bannerID, usersID string) error
- func (bs *BannerStorage) Add(ctx context.Context, b *entities.Banner) error
- func (bs *BannerStorage) Delete(ctx context.Context, bannerID, slotID string) error
- func (bs *BannerStorage) SelectOne(ctx context.Context, slotID, usersID string) (string, error)
- type Slot
- type Statistics
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Banner ¶
type Banner struct { ID string `db:"id"` SlotID string `db:"id_slot"` Description string `db:"description"` DateCreated time.Time `db:"date_created"` }
Banner represents an advertisement element presented in a slot.
type BannerStorage ¶
type BannerStorage struct {
// contains filtered or unexported fields
}
BannerStorage represents a PostgesDB storage.
func (*BannerStorage) AckClick ¶
func (bs *BannerStorage) AckClick(ctx context.Context, bannerID, usersID string) error
AckClick increases number of clicks to 1 for specific banner and users group.
Click to show internal directories.
Click to hide internal directories.