repositories

package
v0.0.0-...-34e14d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (bssg *BannerSlotSocialGroups) GetTheMostProfitableBannerID(
	ctx context.Context,
	slotID,
	socialGroupID int64,
) (int64, error)

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 (bs *BannerSlots) AddBannerSlot(ctx context.Context, bannerID, slotID int64) (int64, error)

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

func (bs *BannerSlots) GetRandomBannerIDExceptExcluded(
	ctx context.Context,
	slotID,
	excludedBannerID int64,
) (int64, error)

type Banners

type Banners struct {
	// contains filtered or unexported fields
}

func NewBanners

func NewBanners(db *sqlx.DB) *Banners

func (*Banners) AddBanner

func (b *Banners) AddBanner(ctx context.Context, description string) (int64, error)

func (*Banners) DeleteBanner

func (b *Banners) DeleteBanner(ctx context.Context, id int64) error

func (*Banners) GetBanner

func (b *Banners) GetBanner(ctx context.Context, id int64) (*core.Banner, error)

type Slots

type Slots struct {
	// contains filtered or unexported fields
}

func NewSlots

func NewSlots(db *sqlx.DB) *Slots

func (*Slots) AddSlot

func (b *Slots) AddSlot(ctx context.Context, description string) (int64, error)

func (*Slots) DeleteSlot

func (b *Slots) DeleteSlot(ctx context.Context, id int64) error

func (*Slots) GetSlot

func (b *Slots) GetSlot(ctx context.Context, id int64) (*core.Slot, error)

type SocialGroups

type SocialGroups struct {
	// contains filtered or unexported fields
}

func NewSocialGroups

func NewSocialGroups(db *sqlx.DB) *SocialGroups

func (*SocialGroups) AddSocialGroup

func (b *SocialGroups) AddSocialGroup(ctx context.Context, description string) (int64, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL