usecase

package
v0.0.0-...-53f0542 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntityUsecase

func NewEntityUsecase(
	uuidp uuid.Provider,
	tp timep.Provider,
	e edomain.Repository,

) *entityUsecase

NewEntityUsecase Constructor function for the `UserUsecase` implementation.

Types

type Usecase

type Usecase interface {
	Insert(ctx context.Context, e *entity.Entity) (ee *entity.Entity, err error)
	ListAndCountByFilter(ctx context.Context, ef *entity.EntityFilter) ([]*entity.Entity, uint64, error)
	Delete(ctx context.Context, entityID uint64) (err error)
}

EntityUsecase Provides interface for the entity use cases.

Jump to

Keyboard shortcuts

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