Documentation ¶ Index ¶ type Usecase func NewUsecase(repo statistic.Repository) *Usecase func (uc *Usecase) Count(ctx context.Context, opts ...statistic.Option) (int64, error) func (uc *Usecase) Statistic(ctx context.Context, opts ...statistic.Option) ([]*models.StatisticAdItem, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Usecase ¶ type Usecase struct { // contains filtered or unexported fields } func NewUsecase ¶ func NewUsecase(repo statistic.Repository) *Usecase func (*Usecase) Count ¶ func (uc *Usecase) Count(ctx context.Context, opts ...statistic.Option) (int64, error) func (*Usecase) Statistic ¶ func (uc *Usecase) Statistic(ctx context.Context, opts ...statistic.Option) ([]*models.StatisticAdItem, error) Source Files ¶ View all Source files usecase.go Click to show internal directories. Click to hide internal directories.