sqlstorage

package
v0.0.0-...-a67f07d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(config *config.Config, dsn string) *Storage

func (*Storage) AddBanner

func (s *Storage) AddBanner(description string) error

func (*Storage) AddSDGroup

func (s *Storage) AddSDGroup(description string) error

func (*Storage) AddSlot

func (s *Storage) AddSlot(description string) error

func (*Storage) AddTrack

func (s *Storage) AddTrack(bannerID, slotID, sdGroupID int) error

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Connect

func (s *Storage) Connect(ctx context.Context) error

func (*Storage) GetAllGroups

func (s *Storage) GetAllGroups() ([]*storage.SDGroup, error)

func (*Storage) GetAllTracks

func (s *Storage) GetAllTracks(slotID, sdGroupID int) (map[int]*storage.Tracker, error)

func (*Storage) RemoveBannerByID

func (s *Storage) RemoveBannerByID(bannerID int) error

func (*Storage) RemoveSDGroupByID

func (s *Storage) RemoveSDGroupByID(sdGroupID int) error

func (*Storage) RemoveSlotByID

func (s *Storage) RemoveSlotByID(slotID int) error

func (*Storage) RemoveTracks

func (s *Storage) RemoveTracks(bannerID, slotID int) error

func (*Storage) TrackClick

func (s *Storage) TrackClick(bannerID, slotID, sdGroupID int) error

func (*Storage) TrackView

func (s *Storage) TrackView(bannerID, slotID, sdGroupID int) error

Jump to

Keyboard shortcuts

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