maindb

package
v0.0.0-...-a67d38c Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 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 PgBannerStorage

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

func NewPgBannerStorage

func NewPgBannerStorage(dsn string) (*PgBannerStorage, error)

func (*PgBannerStorage) DeleteBanner

func (pges *PgBannerStorage) DeleteBanner(ctx context.Context, ID int64) error

func (*PgBannerStorage) GetBanners

func (pges *PgBannerStorage) GetBanners(ctx context.Context) ([]*models.Banner, error)

func (*PgBannerStorage) SetBanner

func (pges *PgBannerStorage) SetBanner(ctx context.Context, banner *models.Banner) error

func (*PgBannerStorage) UpdateBanner

func (pges *PgBannerStorage) UpdateBanner(ctx context.Context, banner *models.Banner) (*models.Banner, error)

type PgGroupStorage

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

func NewPgGroupStorage

func NewPgGroupStorage(dsn string) (*PgGroupStorage, error)

func (*PgGroupStorage) DeleteGroup

func (pges *PgGroupStorage) DeleteGroup(ctx context.Context, ID int64) error

func (*PgGroupStorage) GetGroups

func (pges *PgGroupStorage) GetGroups(ctx context.Context) ([]*models.Group, error)

func (*PgGroupStorage) SetGroup

func (pges *PgGroupStorage) SetGroup(ctx context.Context, group *models.Group) error

func (*PgGroupStorage) UpdateGroup

func (pges *PgGroupStorage) UpdateGroup(ctx context.Context, group *models.Group) (*models.Group, error)

type PgReportStorage

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

func NewPgReportStorage

func NewPgReportStorage(dsn string) (*PgReportStorage, error)

func (*PgReportStorage) DeleteReport

func (pges *PgReportStorage) DeleteReport(ctx context.Context, BannerID int64, GroupID int64, SlotID int64) error

func (*PgReportStorage) GetReports

func (pges *PgReportStorage) GetReports(ctx context.Context) ([]*models.Report, error)

func (*PgReportStorage) SetReport

func (pges *PgReportStorage) SetReport(ctx context.Context, report *models.Report) error

func (*PgReportStorage) UpdateReport

func (pges *PgReportStorage) UpdateReport(ctx context.Context, report *models.Report) (*models.Report, error)

type PgRotationStorage

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

func NewPgRotationStorage

func NewPgRotationStorage(dsn string) (*PgRotationStorage, error)

func (*PgRotationStorage) DeleteRotation

func (pges *PgRotationStorage) DeleteRotation(ctx context.Context, bannerID int64, slotID int64) error

func (*PgRotationStorage) GetRotations

func (pges *PgRotationStorage) GetRotations(ctx context.Context) ([]*models.Rotation, error)

func (*PgRotationStorage) SetRotation

func (pges *PgRotationStorage) SetRotation(ctx context.Context, rotation *models.Rotation) error

func (*PgRotationStorage) UpdateRotation

func (pges *PgRotationStorage) UpdateRotation(ctx context.Context, rotation *models.Rotation) (*models.Rotation, error)

type PgSlotStorage

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

implements domain.interfaces.SlotStorage

func NewPgSlotStorage

func NewPgSlotStorage(dsn string) (*PgSlotStorage, error)

func (*PgSlotStorage) DeleteSlot

func (pges *PgSlotStorage) DeleteSlot(ctx context.Context, ID int64) error

func (*PgSlotStorage) GetSlots

func (pges *PgSlotStorage) GetSlots(ctx context.Context) ([]*models.Slot, error)

func (*PgSlotStorage) SetSlot

func (pges *PgSlotStorage) SetSlot(ctx context.Context, slot *models.Slot) error

func (*PgSlotStorage) UpdateSlot

func (pges *PgSlotStorage) UpdateSlot(ctx context.Context, slot *models.Slot) (*models.Slot, error)

Jump to

Keyboard shortcuts

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