usecase

package
v0.0.0-...-454c3e9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 New

func New() *Usecase

New create new usecase

func (*Usecase) Approve

func (u *Usecase) Approve(ctx context.Context, id uint64, message string) error

func (*Usecase) Count

func (u *Usecase) Count(ctx context.Context, qops ...rtbsource.Option) (int64, error)

func (*Usecase) Create

func (u *Usecase) Create(ctx context.Context, source *models.RTBSource) (uint64, error)

func (*Usecase) Delete

func (u *Usecase) Delete(ctx context.Context, id uint64, msg *string) error

func (*Usecase) FetchList

func (u *Usecase) FetchList(ctx context.Context, qops ...rtbsource.Option) ([]*models.RTBSource, error)

func (*Usecase) Get

func (u *Usecase) Get(ctx context.Context, id uint64) (*models.RTBSource, error)

func (*Usecase) Pause

func (u *Usecase) Pause(ctx context.Context, id uint64, message string) error

func (*Usecase) Reject

func (u *Usecase) Reject(ctx context.Context, id uint64, message string) error

func (*Usecase) Run

func (u *Usecase) Run(ctx context.Context, id uint64, message string) error

func (*Usecase) Update

func (u *Usecase) Update(ctx context.Context, id uint64, source *models.RTBSource) error

Jump to

Keyboard shortcuts

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