Documentation ¶
Index ¶
- type PgBannerStorage
- func (pges *PgBannerStorage) DeleteBanner(ctx context.Context, ID int64) error
- func (pges *PgBannerStorage) GetBanners(ctx context.Context) ([]*models.Banner, error)
- func (pges *PgBannerStorage) SetBanner(ctx context.Context, banner *models.Banner) error
- func (pges *PgBannerStorage) UpdateBanner(ctx context.Context, banner *models.Banner) (*models.Banner, error)
- type PgGroupStorage
- func (pges *PgGroupStorage) DeleteGroup(ctx context.Context, ID int64) error
- func (pges *PgGroupStorage) GetGroups(ctx context.Context) ([]*models.Group, error)
- func (pges *PgGroupStorage) SetGroup(ctx context.Context, group *models.Group) error
- func (pges *PgGroupStorage) UpdateGroup(ctx context.Context, group *models.Group) (*models.Group, error)
- type PgReportStorage
- func (pges *PgReportStorage) DeleteReport(ctx context.Context, BannerID int64, GroupID int64, SlotID int64) error
- func (pges *PgReportStorage) GetReports(ctx context.Context) ([]*models.Report, error)
- func (pges *PgReportStorage) SetReport(ctx context.Context, report *models.Report) error
- func (pges *PgReportStorage) UpdateReport(ctx context.Context, report *models.Report) (*models.Report, error)
- type PgRotationStorage
- func (pges *PgRotationStorage) DeleteRotation(ctx context.Context, bannerID int64, slotID int64) error
- func (pges *PgRotationStorage) GetRotations(ctx context.Context) ([]*models.Rotation, error)
- func (pges *PgRotationStorage) SetRotation(ctx context.Context, rotation *models.Rotation) error
- func (pges *PgRotationStorage) UpdateRotation(ctx context.Context, rotation *models.Rotation) (*models.Rotation, error)
- type PgSlotStorage
- func (pges *PgSlotStorage) DeleteSlot(ctx context.Context, ID int64) error
- func (pges *PgSlotStorage) GetSlots(ctx context.Context) ([]*models.Slot, error)
- func (pges *PgSlotStorage) SetSlot(ctx context.Context, slot *models.Slot) error
- func (pges *PgSlotStorage) UpdateSlot(ctx context.Context, slot *models.Slot) (*models.Slot, error)
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 (*PgBannerStorage) UpdateBanner ¶
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) UpdateGroup ¶
type PgReportStorage ¶
type PgReportStorage struct {
// contains filtered or unexported fields
}
func NewPgReportStorage ¶
func NewPgReportStorage(dsn string) (*PgReportStorage, error)
func (*PgReportStorage) DeleteReport ¶
func (*PgReportStorage) GetReports ¶
func (*PgReportStorage) UpdateReport ¶
type PgRotationStorage ¶
type PgRotationStorage struct {
// contains filtered or unexported fields
}
func NewPgRotationStorage ¶
func NewPgRotationStorage(dsn string) (*PgRotationStorage, error)
func (*PgRotationStorage) DeleteRotation ¶
func (*PgRotationStorage) GetRotations ¶
func (*PgRotationStorage) SetRotation ¶
func (*PgRotationStorage) UpdateRotation ¶
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) UpdateSlot ¶
Click to show internal directories.
Click to hide internal directories.