gauge

package
v0.0.0-...-37de26c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 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 field in the database.
	FieldTime = "time"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// FieldWID holds the string denoting the wid field in the database.
	FieldWID = "w_id"

	// 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 ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

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.

func WID

func WID(v string) predicate.Gauge

WID applies equality check predicate on the "wID" field. It's identical to WIDEQ.

func WIDContains

func WIDContains(v string) predicate.Gauge

WIDContains applies the Contains predicate on the "wID" field.

func WIDContainsFold

func WIDContainsFold(v string) predicate.Gauge

WIDContainsFold applies the ContainsFold predicate on the "wID" field.

func WIDEQ

func WIDEQ(v string) predicate.Gauge

WIDEQ applies the EQ predicate on the "wID" field.

func WIDEqualFold

func WIDEqualFold(v string) predicate.Gauge

WIDEqualFold applies the EqualFold predicate on the "wID" field.

func WIDGT

func WIDGT(v string) predicate.Gauge

WIDGT applies the GT predicate on the "wID" field.

func WIDGTE

func WIDGTE(v string) predicate.Gauge

WIDGTE applies the GTE predicate on the "wID" field.

func WIDHasPrefix

func WIDHasPrefix(v string) predicate.Gauge

WIDHasPrefix applies the HasPrefix predicate on the "wID" field.

func WIDHasSuffix

func WIDHasSuffix(v string) predicate.Gauge

WIDHasSuffix applies the HasSuffix predicate on the "wID" field.

func WIDIn

func WIDIn(vs ...string) predicate.Gauge

WIDIn applies the In predicate on the "wID" field.

func WIDLT

func WIDLT(v string) predicate.Gauge

WIDLT applies the LT predicate on the "wID" field.

func WIDLTE

func WIDLTE(v string) predicate.Gauge

WIDLTE applies the LTE predicate on the "wID" field.

func WIDNEQ

func WIDNEQ(v string) predicate.Gauge

WIDNEQ applies the NEQ predicate on the "wID" field.

func WIDNotIn

func WIDNotIn(vs ...string) predicate.Gauge

WIDNotIn applies the NotIn predicate on the "wID" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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