Documentation ¶
Index ¶
- type Logger
- type Mab
- type Queues
- type Service
- func (s *Service) AddBanner(ctx context.Context, bannerID string, slotID string) error
- func (s *Service) AddBannerDisplay(ctx context.Context, slotID string, groupID string) (string, error)
- func (s *Service) AddClick(ctx context.Context, bannerID string, slotID string, groupID string) error
- func (s *Service) AddDisplay(ctx context.Context, bannerID, slotID string, groupID string) error
- func (s *Service) CountInMap(bannerInSlot []models.Rotation, bannerClick []models.NewClick, ...) (banner []string, bannerClickInMap map[string]int, ...)
- func (s *Service) CreateBanner(ctx context.Context, bannerID string, description string) (string, error)
- func (s *Service) CreateGroup(ctx context.Context, groupID string, description string) (string, error)
- func (s *Service) CreateSlot(ctx context.Context, slotID string, description string) (string, error)
- func (s *Service) DeleteBanner(ctx context.Context, bannerID string, slotID string) error
- func (s *Service) LoggerBegin() Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddBannerDisplay ¶
func (s *Service) AddBannerDisplay(ctx context.Context, slotID string, groupID string) (string, error)
AddBannerDisplay chooses a banner to display.
func (*Service) AddClick ¶
func (s *Service) AddClick(ctx context.Context, bannerID string, slotID string, groupID string) error
AddClick adds a click on the banner in the group.
func (*Service) AddDisplay ¶
Adds a banner to display.
func (*Service) CountInMap ¶
func (*Service) CreateBanner ¶
func (s *Service) CreateBanner(ctx context.Context, bannerID string, description string) (string, error)
CreateBanner creates a new banner.
func (*Service) CreateGroup ¶
func (s *Service) CreateGroup(ctx context.Context, groupID string, description string) (string, error)
CreateGroup creates a new group.
func (*Service) CreateSlot ¶
func (s *Service) CreateSlot(ctx context.Context, slotID string, description string) (string, error)
CreateSlot creates a new slot.
func (*Service) DeleteBanner ¶
DeleteBanner deletes the banner from the slot.
Click to show internal directories.
Click to hide internal directories.