counter

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 counter type in the database.
	Label = "counter"
	// 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" // FieldCount holds the string denoting the count vertex property in the database.
	FieldCount = "count"

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

	// Table holds the table name of the counter in the database.
	Table = "counters"
	// MetricTable is the table the holds the metric relation/edge.
	MetricTable = "counters"
	// 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_counters"
)

Variables

Columns holds all SQL columns for counter fields.

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

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

Functions

func And

func And(predicates ...predicate.Counter) predicate.Counter

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

func Count

func Count(v int64) predicate.Counter

Count applies equality check predicate on the "count" field. It's identical to CountEQ.

func CountEQ

func CountEQ(v int64) predicate.Counter

CountEQ applies the EQ predicate on the "count" field.

func CountGT

func CountGT(v int64) predicate.Counter

CountGT applies the GT predicate on the "count" field.

func CountGTE

func CountGTE(v int64) predicate.Counter

CountGTE applies the GTE predicate on the "count" field.

func CountIn

func CountIn(vs ...int64) predicate.Counter

CountIn applies the In predicate on the "count" field.

func CountLT

func CountLT(v int64) predicate.Counter

CountLT applies the LT predicate on the "count" field.

func CountLTE

func CountLTE(v int64) predicate.Counter

CountLTE applies the LTE predicate on the "count" field.

func CountNEQ

func CountNEQ(v int64) predicate.Counter

CountNEQ applies the NEQ predicate on the "count" field.

func CountNotIn

func CountNotIn(vs ...int64) predicate.Counter

CountNotIn applies the NotIn predicate on the "count" field.

func HasMetric

func HasMetric() predicate.Counter

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

func HasMetricWith

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

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

func ID

func ID(id int) predicate.Counter

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Counter

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Counter

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Counter

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Counter

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Counter

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Counter

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Counter) predicate.Counter

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

func Time

func Time(v int64) predicate.Counter

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

func TimeEQ

func TimeEQ(v int64) predicate.Counter

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

func TimeGT

func TimeGT(v int64) predicate.Counter

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

func TimeGTE

func TimeGTE(v int64) predicate.Counter

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

func TimeIn

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

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

func TimeLT

func TimeLT(v int64) predicate.Counter

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

func TimeLTE

func TimeLTE(v int64) predicate.Counter

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

func TimeNEQ

func TimeNEQ(v int64) predicate.Counter

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

func TimeNotIn

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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