counter

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 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 float64) predicate.Counter

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

func ValueEQ

func ValueEQ(v float64) predicate.Counter

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

func ValueGT

func ValueGT(v float64) predicate.Counter

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

func ValueGTE

func ValueGTE(v float64) predicate.Counter

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

func ValueIn

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

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

func ValueLT

func ValueLT(v float64) predicate.Counter

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

func ValueLTE

func ValueLTE(v float64) predicate.Counter

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

func ValueNEQ

func ValueNEQ(v float64) predicate.Counter

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

func ValueNotIn

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

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

Types

type OrderOption added in v0.14.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Counter queries.

func ByID added in v0.14.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName added in v0.14.0

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the Name field.

func ByValue added in v0.14.0

func ByValue(opts ...sql.OrderTermOption) OrderOption

ByValue orders the results by the Value field.

Jump to

Keyboard shortcuts

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