Documentation ¶
Index ¶
- type BannerSlotSocialGroups
- func (bssg *BannerSlotSocialGroups) GetTheMostProfitableBannerID(ctx context.Context, slotID, socialGroupID int64) (int64, error)
- func (bssg *BannerSlotSocialGroups) IncrementClick(ctx context.Context, bannerSlotID, socialGroupID int64) error
- func (bssg *BannerSlotSocialGroups) IncrementView(ctx context.Context, bannerSlotID, socialGroupID int64) error
- type BannerSlots
- func (bs *BannerSlots) AddBannerSlot(ctx context.Context, bannerID, slotID int64) (int64, error)
- func (bs *BannerSlots) DeleteBannerSlot(ctx context.Context, bannerID, slotID int64) error
- func (bs *BannerSlots) GetByBannerAndSlotIDs(ctx context.Context, bannerID, slotID int64) (*core.BannerSlot, error)
- func (bs *BannerSlots) GetRandomBannerIDExceptExcluded(ctx context.Context, slotID, excludedBannerID int64) (int64, error)
- type Banners
- type Slots
- type SocialGroups
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannerSlotSocialGroups ¶
type BannerSlotSocialGroups struct {
// contains filtered or unexported fields
}
func NewBannerSlotSocialGroups ¶
func NewBannerSlotSocialGroups(db *sqlx.DB) *BannerSlotSocialGroups
func (*BannerSlotSocialGroups) GetTheMostProfitableBannerID ¶
func (*BannerSlotSocialGroups) IncrementClick ¶
func (bssg *BannerSlotSocialGroups) IncrementClick(ctx context.Context, bannerSlotID, socialGroupID int64) error
func (*BannerSlotSocialGroups) IncrementView ¶
func (bssg *BannerSlotSocialGroups) IncrementView(ctx context.Context, bannerSlotID, socialGroupID int64) error
type BannerSlots ¶
type BannerSlots struct {
// contains filtered or unexported fields
}
func NewBannerSlots ¶
func NewBannerSlots(db *sqlx.DB) *BannerSlots
func (*BannerSlots) AddBannerSlot ¶
func (*BannerSlots) DeleteBannerSlot ¶
func (bs *BannerSlots) DeleteBannerSlot(ctx context.Context, bannerID, slotID int64) error
func (*BannerSlots) GetByBannerAndSlotIDs ¶
func (bs *BannerSlots) GetByBannerAndSlotIDs(ctx context.Context, bannerID, slotID int64) (*core.BannerSlot, error)
func (*BannerSlots) GetRandomBannerIDExceptExcluded ¶
type Banners ¶
type Banners struct {
// contains filtered or unexported fields
}
func NewBanners ¶
type Slots ¶
type Slots struct {
// contains filtered or unexported fields
}
type SocialGroups ¶
type SocialGroups struct {
// contains filtered or unexported fields
}
func NewSocialGroups ¶
func NewSocialGroups(db *sqlx.DB) *SocialGroups
func (*SocialGroups) AddSocialGroup ¶
func (*SocialGroups) DeleteSocialGroup ¶
func (b *SocialGroups) DeleteSocialGroup(ctx context.Context, id int64) error
func (*SocialGroups) GetSocialGroup ¶
func (b *SocialGroups) GetSocialGroup(ctx context.Context, id int64) (*core.SocialGroup, error)
Click to show internal directories.
Click to hide internal directories.