storage

package
v0.0.0-...-56ec27c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMap

func FilterMap(tx *gorm.DB, filter structs.BannerFilter) error

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 (s *Storage) CreateBanner(bannerName, bannerDescription string) (structs.Banner, error)

func (*Storage) CreateBannerPlacement

func (s *Storage) CreateBannerPlacement(bannerID uint64, slotID uint64, groupID uint64) (structs.BannerPlacement, error)

func (*Storage) CreateGroup

func (s *Storage) CreateGroup(groupName, groupDescription string) (structs.Group, error)

func (*Storage) CreateSlot

func (s *Storage) CreateSlot(slotName, slotDescription string) (structs.Slot, error)

func (*Storage) DeleteBanner

func (s *Storage) DeleteBanner(id uint64) error

func (*Storage) DeleteBannerPlacement

func (s *Storage) DeleteBannerPlacement(id uint64) error

func (*Storage) DeleteGroup

func (s *Storage) DeleteGroup(id uint64) error

func (*Storage) DeleteSlot

func (s *Storage) DeleteSlot(id uint64) error

func (*Storage) ProcessBannerEvent

func (s *Storage) ProcessBannerEvent(id uint64, event string) error

func (*Storage) ReadBannerHighestScore

func (s *Storage) ReadBannerHighestScore(filter structs.BannerFilter) (structs.BannerPlacement, error)

func (*Storage) ReadBanners

func (s *Storage) ReadBanners() ([]*structs.Banner, 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) ReadGroups

func (s *Storage) ReadGroups() ([]*structs.Group, error)

func (*Storage) ReadSlots

func (s *Storage) ReadSlots() ([]*structs.Slot, error)

func (*Storage) RecalculateBannersScore

func (s *Storage) RecalculateBannersScore(filter structs.BannerFilter) error

func (*Storage) UpdateBanner

func (s *Storage) UpdateBanner(b structs.Banner) (structs.Banner, error)

func (*Storage) UpdateBannerPlacement

func (s *Storage) UpdateBannerPlacement(b structs.BannerPlacement) (structs.BannerPlacement, error)

func (*Storage) UpdateGroup

func (s *Storage) UpdateGroup(b structs.Group) (structs.Group, error)

func (*Storage) UpdateSlot

func (s *Storage) UpdateSlot(b structs.Slot) (structs.Slot, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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