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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObservationUsecase

func NewObservationUsecase(
	appConf *config.Conf,
	logger *zerolog.Logger,
	uuidp uuid.Provider,
	tp timep.Provider,
	kmutexp kmutex.Provider,
	o odomain.Repository,
	oc ocdomain.Repository,
	os osdomain.Repository,
	oa oadomain.Repository,
	oar oardomain.Repository,

) *observationUsecase

NewObservationUsecase Constructor function for the `UserUsecase` implementation.

Types

type Usecase

type Usecase interface {
	Insert(ctx context.Context, e *observation.Observation) (ee *observation.Observation, err error)
	CheckIfExistsByPrimaryKey(ctx context.Context, entityID uint64, timestamp time.Time) (bool, error)
	ListAndCountByFilter(ctx context.Context, ef *observation.ObservationFilter) ([]*observation.Observation, uint64, error)
	DeleteByPrimaryKey(ctx context.Context, entityID uint64, timestamp time.Time) error
}

Usecase Provides interface for the observation use cases.

Jump to

Keyboard shortcuts

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