counter

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 2 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// Table holds the table name of the counter in the database.
	Table = "counters"
)

Variables

Columns holds all SQL columns for counter fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "counters" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Counter

ID filters vertices based on their ID field.

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 Name

func Name(v string) predicate.Counter

Name applies equality check predicate on the "Name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Counter

NameContains applies the Contains predicate on the "Name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Counter

NameContainsFold applies the ContainsFold predicate on the "Name" field.

func NameEQ

func NameEQ(v string) predicate.Counter

NameEQ applies the EQ predicate on the "Name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Counter

NameEqualFold applies the EqualFold predicate on the "Name" field.

func NameGT

func NameGT(v string) predicate.Counter

NameGT applies the GT predicate on the "Name" field.

func NameGTE

func NameGTE(v string) predicate.Counter

NameGTE applies the GTE predicate on the "Name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Counter

NameHasPrefix applies the HasPrefix predicate on the "Name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Counter

NameHasSuffix applies the HasSuffix predicate on the "Name" field.

func NameIn

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

NameIn applies the In predicate on the "Name" field.

func NameLT

func NameLT(v string) predicate.Counter

NameLT applies the LT predicate on the "Name" field.

func NameLTE

func NameLTE(v string) predicate.Counter

NameLTE applies the LTE predicate on the "Name" field.

func NameNEQ

func NameNEQ(v string) predicate.Counter

NameNEQ applies the NEQ predicate on the "Name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "Name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Counter) predicate.Counter

Or groups predicates with the OR operator between them.

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

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

func ValueContains

func ValueContains(v string) predicate.Counter

ValueContains applies the Contains predicate on the "Value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.Counter

ValueContainsFold applies the ContainsFold predicate on the "Value" field.

func ValueEQ

func ValueEQ(v string) predicate.Counter

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

func ValueEqualFold

func ValueEqualFold(v string) predicate.Counter

ValueEqualFold applies the EqualFold predicate on the "Value" field.

func ValueGT

func ValueGT(v string) predicate.Counter

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

func ValueGTE

func ValueGTE(v string) predicate.Counter

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

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.Counter

ValueHasPrefix applies the HasPrefix predicate on the "Value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.Counter

ValueHasSuffix applies the HasSuffix predicate on the "Value" field.

func ValueIn

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

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

func ValueLT

func ValueLT(v string) predicate.Counter

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

func ValueLTE

func ValueLTE(v string) predicate.Counter

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

func ValueNEQ

func ValueNEQ(v string) predicate.Counter

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

func ValueNotIn

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

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