package
0.0.0-20210209193608-ea7e623539bd
Repository: https://github.com/danieltitkov/anomaly-detection-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validaton error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewAnomalyClient returns a client for the Anomaly from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewDetectionJobClient returns a client for the DetectionJob from the given config.
NewDetectionJobInstanceClient returns a client for the DetectionJobInstance from the given config.
NewTxContext returns a new context with the given Tx attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author

# Structs

Anomaly is the model entity for the Anomaly schema.
AnomalyClient is a client for the Anomaly schema.
AnomalyCreate is the builder for creating a Anomaly entity.
AnomalyCreateBulk is the builder for creating many Anomaly entities in bulk.
AnomalyDelete is the builder for deleting a Anomaly entity.
AnomalyDeleteOne is the builder for deleting a single Anomaly entity.
AnomalyEdges holds the relations/edges for other nodes in the graph.
AnomalyGroupBy is the group-by builder for Anomaly entities.
AnomalyMutation represents an operation that mutates the Anomaly nodes in the graph.
AnomalyQuery is the builder for querying Anomaly entities.
AnomalySelect is the builder for selecting fields of Anomaly entities.
AnomalyUpdate is the builder for updating Anomaly entities.
AnomalyUpdateOne is the builder for updating a single Anomaly entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
DetectionJob is the model entity for the DetectionJob schema.
DetectionJobClient is a client for the DetectionJob schema.
DetectionJobCreate is the builder for creating a DetectionJob entity.
DetectionJobCreateBulk is the builder for creating many DetectionJob entities in bulk.
DetectionJobDelete is the builder for deleting a DetectionJob entity.
DetectionJobDeleteOne is the builder for deleting a single DetectionJob entity.
DetectionJobEdges holds the relations/edges for other nodes in the graph.
DetectionJobGroupBy is the group-by builder for DetectionJob entities.
DetectionJobInstance is the model entity for the DetectionJobInstance schema.
DetectionJobInstanceClient is a client for the DetectionJobInstance schema.
DetectionJobInstanceCreate is the builder for creating a DetectionJobInstance entity.
DetectionJobInstanceCreateBulk is the builder for creating many DetectionJobInstance entities in bulk.
DetectionJobInstanceDelete is the builder for deleting a DetectionJobInstance entity.
DetectionJobInstanceDeleteOne is the builder for deleting a single DetectionJobInstance entity.
DetectionJobInstanceEdges holds the relations/edges for other nodes in the graph.
DetectionJobInstanceGroupBy is the group-by builder for DetectionJobInstance entities.
DetectionJobInstanceMutation represents an operation that mutates the DetectionJobInstance nodes in the graph.
DetectionJobInstanceQuery is the builder for querying DetectionJobInstance entities.
DetectionJobInstanceSelect is the builder for selecting fields of DetectionJobInstance entities.
DetectionJobInstanceUpdate is the builder for updating DetectionJobInstance entities.
DetectionJobInstanceUpdateOne is the builder for updating a single DetectionJobInstance entity.
DetectionJobMutation represents an operation that mutates the DetectionJob nodes in the graph.
DetectionJobQuery is the builder for querying DetectionJob entities.
DetectionJobSelect is the builder for selecting fields of DetectionJob entities.
DetectionJobUpdate is the builder for updating DetectionJob entities.
DetectionJobUpdateOne is the builder for updating a single DetectionJob entity.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
Anomalies is a parsable slice of Anomaly.
No description provided by the author
No description provided by the author
DetectionJobInstances is a parsable slice of DetectionJobInstance.
DetectionJobs is a parsable slice of DetectionJob.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.