Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Counter) predicate.Counter
- func ID(id int) predicate.Counter
- func IDEQ(id int) predicate.Counter
- func IDGT(id int) predicate.Counter
- func IDGTE(id int) predicate.Counter
- func IDIn(ids ...int) predicate.Counter
- func IDLT(id int) predicate.Counter
- func IDLTE(id int) predicate.Counter
- func IDNEQ(id int) predicate.Counter
- func IDNotIn(ids ...int) predicate.Counter
- func Name(v string) predicate.Counter
- func NameContains(v string) predicate.Counter
- func NameContainsFold(v string) predicate.Counter
- func NameEQ(v string) predicate.Counter
- func NameEqualFold(v string) predicate.Counter
- func NameGT(v string) predicate.Counter
- func NameGTE(v string) predicate.Counter
- func NameHasPrefix(v string) predicate.Counter
- func NameHasSuffix(v string) predicate.Counter
- func NameIn(vs ...string) predicate.Counter
- func NameLT(v string) predicate.Counter
- func NameLTE(v string) predicate.Counter
- func NameNEQ(v string) predicate.Counter
- func NameNotIn(vs ...string) predicate.Counter
- func Not(p predicate.Counter) predicate.Counter
- func Or(predicates ...predicate.Counter) predicate.Counter
- func ValidColumn(column string) bool
- func Value(v string) predicate.Counter
- func ValueContains(v string) predicate.Counter
- func ValueContainsFold(v string) predicate.Counter
- func ValueEQ(v string) predicate.Counter
- func ValueEqualFold(v string) predicate.Counter
- func ValueGT(v string) predicate.Counter
- func ValueGTE(v string) predicate.Counter
- func ValueHasPrefix(v string) predicate.Counter
- func ValueHasSuffix(v string) predicate.Counter
- func ValueIn(vs ...string) predicate.Counter
- func ValueLT(v string) predicate.Counter
- func ValueLTE(v string) predicate.Counter
- func ValueNEQ(v string) predicate.Counter
- func ValueNotIn(vs ...string) predicate.Counter
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldValue, }
Columns holds all SQL columns for counter fields.
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 NameContains ¶
NameContains applies the Contains predicate on the "Name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "Name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "Name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "Name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "Name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "Value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "Value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "Value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "Value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "Value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "Value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "Value" field.
Types ¶
This section is empty.