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.
Click to show internal directories.
Click to hide internal directories.