counter

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 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 field in the database.
	FieldTime = "time"
	// FieldCount holds the string denoting the count field in the database.
	FieldCount = "count"
	// 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 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.

func ValidColumn

func ValidColumn(column string) bool

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

func WID

func WID(v string) predicate.Counter

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

func WIDContains

func WIDContains(v string) predicate.Counter

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

func WIDContainsFold

func WIDContainsFold(v string) predicate.Counter

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

func WIDEQ

func WIDEQ(v string) predicate.Counter

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

func WIDEqualFold

func WIDEqualFold(v string) predicate.Counter

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

func WIDGT

func WIDGT(v string) predicate.Counter

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

func WIDGTE

func WIDGTE(v string) predicate.Counter

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

func WIDHasPrefix

func WIDHasPrefix(v string) predicate.Counter

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

func WIDHasSuffix

func WIDHasSuffix(v string) predicate.Counter

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

func WIDIn

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

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

func WIDLT

func WIDLT(v string) predicate.Counter

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

func WIDLTE

func WIDLTE(v string) predicate.Counter

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

func WIDNEQ

func WIDNEQ(v string) predicate.Counter

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

func WIDNotIn

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

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