Documentation ¶
Overview ¶
generated by generate-table-methods; DO NOT EDIT
generated by generate-table-methods; DO NOT EDIT
generated by generate-table-methods; DO NOT EDIT
Index ¶
- func FilterMap(tx *gorm.DB, filter structs.BannerFilter) error
- func NewStorage(cfg *config.Configuration) (interfaces.Storage, error)
- type Storage
- func (s *Storage) CreateBanner(bannerName, bannerDescription string) (structs.Banner, error)
- func (s *Storage) CreateBannerPlacement(bannerID uint64, slotID uint64, groupID uint64) (structs.BannerPlacement, error)
- func (s *Storage) CreateGroup(groupName, groupDescription string) (structs.Group, error)
- func (s *Storage) CreateSlot(slotName, slotDescription string) (structs.Slot, error)
- func (s *Storage) DeleteBanner(id uint64) error
- func (s *Storage) DeleteBannerPlacement(id uint64) error
- func (s *Storage) DeleteGroup(id uint64) error
- func (s *Storage) DeleteSlot(id uint64) error
- func (s *Storage) ProcessBannerEvent(id uint64, event string) error
- func (s *Storage) ReadBannerHighestScore(filter structs.BannerFilter) (structs.BannerPlacement, error)
- func (s *Storage) ReadBanners() ([]*structs.Banner, error)
- func (s *Storage) ReadBannersPlacements(filter structs.BannerFilter) ([]*structs.BannerPlacement, error)
- func (s *Storage) ReadBannersShows(filter structs.BannerFilter) ([]*structs.SummaryBannersShows, error)
- func (s *Storage) ReadGroups() ([]*structs.Group, error)
- func (s *Storage) ReadSlots() ([]*structs.Slot, error)
- func (s *Storage) RecalculateBannersScore(filter structs.BannerFilter) error
- func (s *Storage) UpdateBanner(b structs.Banner) (structs.Banner, error)
- func (s *Storage) UpdateBannerPlacement(b structs.BannerPlacement) (structs.BannerPlacement, error)
- func (s *Storage) UpdateGroup(b structs.Group) (structs.Group, error)
- func (s *Storage) UpdateSlot(b structs.Slot) (structs.Slot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(cfg *config.Configuration) (interfaces.Storage, error)
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateBanner ¶
func (*Storage) CreateBannerPlacement ¶
func (*Storage) CreateGroup ¶
func (*Storage) CreateSlot ¶
func (*Storage) DeleteBanner ¶
func (*Storage) DeleteBannerPlacement ¶
func (*Storage) DeleteGroup ¶
func (*Storage) DeleteSlot ¶
func (*Storage) ProcessBannerEvent ¶
func (*Storage) ReadBannerHighestScore ¶
func (s *Storage) ReadBannerHighestScore(filter structs.BannerFilter) (structs.BannerPlacement, error)
func (*Storage) ReadBannersPlacements ¶
func (s *Storage) ReadBannersPlacements(filter structs.BannerFilter) ([]*structs.BannerPlacement, error)
func (*Storage) ReadBannersShows ¶
func (s *Storage) ReadBannersShows(filter structs.BannerFilter) ([]*structs.SummaryBannersShows, error)
func (*Storage) RecalculateBannersScore ¶
func (s *Storage) RecalculateBannersScore(filter structs.BannerFilter) error
func (*Storage) UpdateBanner ¶
func (*Storage) UpdateBannerPlacement ¶
func (s *Storage) UpdateBannerPlacement(b structs.BannerPlacement) (structs.BannerPlacement, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.