Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Bot) predicate.Bot
- func Delta(v int) predicate.Bot
- func DeltaEQ(v int) predicate.Bot
- func DeltaGT(v int) predicate.Bot
- func DeltaGTE(v int) predicate.Bot
- func DeltaIn(vs ...int) predicate.Bot
- func DeltaLT(v int) predicate.Bot
- func DeltaLTE(v int) predicate.Bot
- func DeltaNEQ(v int) predicate.Bot
- func DeltaNotIn(vs ...int) predicate.Bot
- func HasInfecting() predicate.Bot
- func HasInfectingWith(preds ...predicate.Host) predicate.Bot
- func ID(id int) predicate.Bot
- func IDEQ(id int) predicate.Bot
- func IDGT(id int) predicate.Bot
- func IDGTE(id int) predicate.Bot
- func IDIn(ids ...int) predicate.Bot
- func IDLT(id int) predicate.Bot
- func IDLTE(id int) predicate.Bot
- func IDNEQ(id int) predicate.Bot
- func IDNotIn(ids ...int) predicate.Bot
- func Interval(v int) predicate.Bot
- func IntervalEQ(v int) predicate.Bot
- func IntervalGT(v int) predicate.Bot
- func IntervalGTE(v int) predicate.Bot
- func IntervalIn(vs ...int) predicate.Bot
- func IntervalLT(v int) predicate.Bot
- func IntervalLTE(v int) predicate.Bot
- func IntervalNEQ(v int) predicate.Bot
- func IntervalNotIn(vs ...int) predicate.Bot
- func LastSeen(v int) predicate.Bot
- func LastSeenEQ(v int) predicate.Bot
- func LastSeenGT(v int) predicate.Bot
- func LastSeenGTE(v int) predicate.Bot
- func LastSeenIn(vs ...int) predicate.Bot
- func LastSeenLT(v int) predicate.Bot
- func LastSeenLTE(v int) predicate.Bot
- func LastSeenNEQ(v int) predicate.Bot
- func LastSeenNotIn(vs ...int) predicate.Bot
- func Not(p predicate.Bot) predicate.Bot
- func Or(predicates ...predicate.Bot) predicate.Bot
- func UUID(v string) predicate.Bot
- func UUIDContains(v string) predicate.Bot
- func UUIDContainsFold(v string) predicate.Bot
- func UUIDEQ(v string) predicate.Bot
- func UUIDEqualFold(v string) predicate.Bot
- func UUIDGT(v string) predicate.Bot
- func UUIDGTE(v string) predicate.Bot
- func UUIDHasPrefix(v string) predicate.Bot
- func UUIDHasSuffix(v string) predicate.Bot
- func UUIDIn(vs ...string) predicate.Bot
- func UUIDLT(v string) predicate.Bot
- func UUIDLTE(v string) predicate.Bot
- func UUIDNEQ(v string) predicate.Bot
- func UUIDNotIn(vs ...string) predicate.Bot
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the bot type in the database. Label = "bot" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldInterval holds the string denoting the interval field in the database. FieldInterval = "interval" // FieldDelta holds the string denoting the delta field in the database. FieldDelta = "delta" // FieldLastSeen holds the string denoting the lastseen field in the database. FieldLastSeen = "last_seen" // EdgeInfecting holds the string denoting the infecting edge name in mutations. EdgeInfecting = "infecting" // Table holds the table name of the bot in the database. Table = "bots" // InfectingTable is the table the holds the infecting relation/edge. InfectingTable = "bots" // InfectingInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. InfectingInverseTable = "hosts" // InfectingColumn is the table column denoting the infecting relation/edge. InfectingColumn = "host_bots" )
Variables ¶
var Columns = []string{ FieldID, FieldUUID, FieldInterval, FieldDelta, FieldLastSeen, }
Columns holds all SQL columns for bot fields.
var ( // DefaultLastSeen holds the default value on creation for the "lastSeen" field. DefaultLastSeen int )
var ForeignKeys = []string{
"host_bots",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Bot type.
Functions ¶
func Delta ¶
Delta applies equality check predicate on the "delta" field. It's identical to DeltaEQ.
func DeltaNotIn ¶
DeltaNotIn applies the NotIn predicate on the "delta" field.
func HasInfecting ¶
HasInfecting applies the HasEdge predicate on the "infecting" edge.
func HasInfectingWith ¶
HasInfectingWith applies the HasEdge predicate on the "infecting" edge with a given conditions (other predicates).
func Interval ¶
Interval applies equality check predicate on the "interval" field. It's identical to IntervalEQ.
func IntervalEQ ¶
IntervalEQ applies the EQ predicate on the "interval" field.
func IntervalGT ¶
IntervalGT applies the GT predicate on the "interval" field.
func IntervalGTE ¶
IntervalGTE applies the GTE predicate on the "interval" field.
func IntervalIn ¶
IntervalIn applies the In predicate on the "interval" field.
func IntervalLT ¶
IntervalLT applies the LT predicate on the "interval" field.
func IntervalLTE ¶
IntervalLTE applies the LTE predicate on the "interval" field.
func IntervalNEQ ¶
IntervalNEQ applies the NEQ predicate on the "interval" field.
func IntervalNotIn ¶
IntervalNotIn applies the NotIn predicate on the "interval" field.
func LastSeen ¶
LastSeen applies equality check predicate on the "lastSeen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "lastSeen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "lastSeen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "lastSeen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "lastSeen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "lastSeen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "lastSeen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "lastSeen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "lastSeen" field.
func UUIDContains ¶
UUIDContains applies the Contains predicate on the "uuid" field.
func UUIDContainsFold ¶
UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.
func UUIDEqualFold ¶
UUIDEqualFold applies the EqualFold predicate on the "uuid" field.
func UUIDHasPrefix ¶
UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.
func UUIDHasSuffix ¶
UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.