Documentation ¶
Overview ¶
Package rtbsource present full API functionality of the specific object
Package rtbsource present full API functionality of the specific object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOrder ¶
type ListOrder struct { Title models.Order AccountID models.Order CreatedAt models.Order UpdatedAt models.Order }
ListOrder of the objects list
type Repository ¶
type Repository interface { Get(ctx context.Context, id uint64) (*models.RTBSource, error) FetchList(ctx context.Context, qops ...Option) ([]*models.RTBSource, error) Count(ctx context.Context, qops ...Option) (int64, error) Create(ctx context.Context, source *models.RTBSource) (uint64, error) Update(ctx context.Context, id uint64, source *models.RTBSource) error Run(ctx context.Context, id uint64, message string) error Pause(ctx context.Context, id uint64, message string) error Approve(ctx context.Context, id uint64, message string) error Reject(ctx context.Context, id uint64, message string) error Delete(ctx context.Context, id uint64) error }
Repository of access to the source
type Usecase ¶
type Usecase interface { Get(ctx context.Context, id uint64) (*models.RTBSource, error) FetchList(ctx context.Context, qops ...Option) ([]*models.RTBSource, error) Count(ctx context.Context, qops ...Option) (int64, error) Create(ctx context.Context, source *models.RTBSource) (uint64, error) Update(ctx context.Context, id uint64, source *models.RTBSource) error Run(ctx context.Context, id uint64, message string) error Pause(ctx context.Context, id uint64, message string) error Approve(ctx context.Context, id uint64, message string) error Reject(ctx context.Context, id uint64, message string) error Delete(ctx context.Context, id uint64, msg *string) error }
usecase of access to the source
Click to show internal directories.
Click to hide internal directories.