gauge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the gauge type in the database.
	Label = "gauge"
	// FieldID holds the string denoting the id field in the database.
	FieldID    = "id"   // FieldTime holds the string denoting the time vertex property in the database.
	FieldTime  = "time" // FieldValue holds the string denoting the value vertex property in the database.
	FieldValue = "value"

	// EdgeMetric holds the string denoting the metric edge name in mutations.
	EdgeMetric = "metric"

	// Table holds the table name of the gauge in the database.
	Table = "gauges"
	// MetricTable is the table the holds the metric relation/edge.
	MetricTable = "gauges"
	// MetricInverseTable is the table name for the Metric entity.
	// It exists in this package in order to avoid circular dependency with the "metric" package.
	MetricInverseTable = "metrics"
	// MetricColumn is the table column denoting the metric relation/edge.
	MetricColumn = "metric_gauges"
)

Variables

Columns holds all SQL columns for gauge fields.

View Source
var ForeignKeys = []string{
	"metric_gauges",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Gauge type.

Functions

func And

func And(predicates ...predicate.Gauge) predicate.Gauge

And groups list of predicates with the AND operator between them.

func HasMetric

func HasMetric() predicate.Gauge

HasMetric applies the HasEdge predicate on the "metric" edge.

func HasMetricWith

func HasMetricWith(preds ...predicate.Metric) predicate.Gauge

HasMetricWith applies the HasEdge predicate on the "metric" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Gauge

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Gauge

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Gauge

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Gauge

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Gauge

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Gauge

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Gauge

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Gauge

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Gauge

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Gauge) predicate.Gauge

Or groups list of predicates with the OR operator between them.

func Time

func Time(v int64) predicate.Gauge

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v int64) predicate.Gauge

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v int64) predicate.Gauge

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v int64) predicate.Gauge

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...int64) predicate.Gauge

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v int64) predicate.Gauge

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v int64) predicate.Gauge

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v int64) predicate.Gauge

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...int64) predicate.Gauge

TimeNotIn applies the NotIn predicate on the "time" field.

func Value

func Value(v int64) predicate.Gauge

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v int64) predicate.Gauge

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v int64) predicate.Gauge

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v int64) predicate.Gauge

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...int64) predicate.Gauge

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v int64) predicate.Gauge

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v int64) predicate.Gauge

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v int64) predicate.Gauge

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...int64) predicate.Gauge

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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