entgo

package
v0.0.0-...-ea7e623 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntgoRepository

type EntgoRepository struct {
	// contains filtered or unexported fields
}

func NewEntgoRepository

func NewEntgoRepository(
	client *ent.Client,
	logger *logger.Logger,
) *EntgoRepository

func (*EntgoRepository) CreateAnomaly

func (r *EntgoRepository) CreateAnomaly(a *domain.Anomaly) (*domain.Anomaly, error)

func (*EntgoRepository) CreateDetectionInstanceJob

func (r *EntgoRepository) CreateDetectionInstanceJob(i *domain.DetectionJobInstance) (*domain.DetectionJobInstance, error)

func (*EntgoRepository) CreateDetectionJob

func (r *EntgoRepository) CreateDetectionJob(j *domain.DetectionJob) (*domain.DetectionJob, error)

func (*EntgoRepository) DeleteDetectionJobByID

func (r *EntgoRepository) DeleteDetectionJobByID(id int) error

func (*EntgoRepository) FilterAnomalies

func (r *EntgoRepository) FilterAnomalies(args *domain.FilterAnomaliesArgs) ([]*domain.Anomaly, error)

func (*EntgoRepository) FilterDetectionJobs

func (r *EntgoRepository) FilterDetectionJobs(args *domain.FilterDetectionJobsArgs) ([]*domain.DetectionJob, error)

func (*EntgoRepository) GetDetectionJobByID

func (r *EntgoRepository) GetDetectionJobByID(id int) (*domain.DetectionJob, error)

func (*EntgoRepository) SetAnomalyStatus

func (r *EntgoRepository) SetAnomalyStatus(anomalyID int, processed bool) error

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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