repository

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: 4 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 interface {
	IncrementClick(ctx context.Context, bannerSlotID, socialGroupID int64) error
	IncrementView(ctx context.Context, bannerSlotID, socialGroupID int64) error
	GetTheMostProfitableBannerID(ctx context.Context, slotID, socialGroupID int64) (int64, error)
}

type BannerSlots

type BannerSlots interface {
	AddBannerSlot(ctx context.Context, bannerID, slotID int64) (int64, error)
	DeleteBannerSlot(ctx context.Context, bannerID, slotID int64) error
	GetByBannerAndSlotIDs(ctx context.Context, bannerID, slotID int64) (*core.BannerSlot, error)
	GetRandomBannerIDExceptExcluded(ctx context.Context, slotID, excludedBannerID int64) (int64, error)
}

type Banners

type Banners interface {
	AddBanner(ctx context.Context, description string) (int64, error)
	DeleteBanner(ctx context.Context, id int64) error
	GetBanner(ctx context.Context, id int64) (*core.Banner, error)
}

type Repository

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

type Slots

type Slots interface {
	AddSlot(ctx context.Context, description string) (int64, error)
	DeleteSlot(ctx context.Context, id int64) error
	GetSlot(ctx context.Context, id int64) (*core.Slot, error)
}

type SocialGroups

type SocialGroups interface {
	AddSocialGroup(ctx context.Context, description string) (int64, error)
	DeleteSocialGroup(ctx context.Context, id int64) error
	GetSocialGroup(ctx context.Context, id int64) (*core.SocialGroup, error)
}

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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