bot

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for bot fields.

View Source
var (
	// DefaultLastSeen holds the default value on creation for the "lastSeen" field.
	DefaultLastSeen int
)
View Source
var ForeignKeys = []string{
	"host_bots",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Bot type.

Functions

func And

func And(predicates ...predicate.Bot) predicate.Bot

And groups predicates with the AND operator between them.

func Delta

func Delta(v int) predicate.Bot

Delta applies equality check predicate on the "delta" field. It's identical to DeltaEQ.

func DeltaEQ

func DeltaEQ(v int) predicate.Bot

DeltaEQ applies the EQ predicate on the "delta" field.

func DeltaGT

func DeltaGT(v int) predicate.Bot

DeltaGT applies the GT predicate on the "delta" field.

func DeltaGTE

func DeltaGTE(v int) predicate.Bot

DeltaGTE applies the GTE predicate on the "delta" field.

func DeltaIn

func DeltaIn(vs ...int) predicate.Bot

DeltaIn applies the In predicate on the "delta" field.

func DeltaLT

func DeltaLT(v int) predicate.Bot

DeltaLT applies the LT predicate on the "delta" field.

func DeltaLTE

func DeltaLTE(v int) predicate.Bot

DeltaLTE applies the LTE predicate on the "delta" field.

func DeltaNEQ

func DeltaNEQ(v int) predicate.Bot

DeltaNEQ applies the NEQ predicate on the "delta" field.

func DeltaNotIn

func DeltaNotIn(vs ...int) predicate.Bot

DeltaNotIn applies the NotIn predicate on the "delta" field.

func HasInfecting

func HasInfecting() predicate.Bot

HasInfecting applies the HasEdge predicate on the "infecting" edge.

func HasInfectingWith

func HasInfectingWith(preds ...predicate.Host) predicate.Bot

HasInfectingWith applies the HasEdge predicate on the "infecting" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Bot

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Bot

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Bot

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Bot

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Bot

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Bot

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Bot

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Bot

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Bot

IDNotIn applies the NotIn predicate on the ID field.

func Interval

func Interval(v int) predicate.Bot

Interval applies equality check predicate on the "interval" field. It's identical to IntervalEQ.

func IntervalEQ

func IntervalEQ(v int) predicate.Bot

IntervalEQ applies the EQ predicate on the "interval" field.

func IntervalGT

func IntervalGT(v int) predicate.Bot

IntervalGT applies the GT predicate on the "interval" field.

func IntervalGTE

func IntervalGTE(v int) predicate.Bot

IntervalGTE applies the GTE predicate on the "interval" field.

func IntervalIn

func IntervalIn(vs ...int) predicate.Bot

IntervalIn applies the In predicate on the "interval" field.

func IntervalLT

func IntervalLT(v int) predicate.Bot

IntervalLT applies the LT predicate on the "interval" field.

func IntervalLTE

func IntervalLTE(v int) predicate.Bot

IntervalLTE applies the LTE predicate on the "interval" field.

func IntervalNEQ

func IntervalNEQ(v int) predicate.Bot

IntervalNEQ applies the NEQ predicate on the "interval" field.

func IntervalNotIn

func IntervalNotIn(vs ...int) predicate.Bot

IntervalNotIn applies the NotIn predicate on the "interval" field.

func LastSeen

func LastSeen(v int) predicate.Bot

LastSeen applies equality check predicate on the "lastSeen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v int) predicate.Bot

LastSeenEQ applies the EQ predicate on the "lastSeen" field.

func LastSeenGT

func LastSeenGT(v int) predicate.Bot

LastSeenGT applies the GT predicate on the "lastSeen" field.

func LastSeenGTE

func LastSeenGTE(v int) predicate.Bot

LastSeenGTE applies the GTE predicate on the "lastSeen" field.

func LastSeenIn

func LastSeenIn(vs ...int) predicate.Bot

LastSeenIn applies the In predicate on the "lastSeen" field.

func LastSeenLT

func LastSeenLT(v int) predicate.Bot

LastSeenLT applies the LT predicate on the "lastSeen" field.

func LastSeenLTE

func LastSeenLTE(v int) predicate.Bot

LastSeenLTE applies the LTE predicate on the "lastSeen" field.

func LastSeenNEQ

func LastSeenNEQ(v int) predicate.Bot

LastSeenNEQ applies the NEQ predicate on the "lastSeen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...int) predicate.Bot

LastSeenNotIn applies the NotIn predicate on the "lastSeen" field.

func Not

func Not(p predicate.Bot) predicate.Bot

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Bot) predicate.Bot

Or groups predicates with the OR operator between them.

func UUID

func UUID(v string) predicate.Bot

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDContains

func UUIDContains(v string) predicate.Bot

UUIDContains applies the Contains predicate on the "uuid" field.

func UUIDContainsFold

func UUIDContainsFold(v string) predicate.Bot

UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.

func UUIDEQ

func UUIDEQ(v string) predicate.Bot

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDEqualFold

func UUIDEqualFold(v string) predicate.Bot

UUIDEqualFold applies the EqualFold predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v string) predicate.Bot

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v string) predicate.Bot

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDHasPrefix

func UUIDHasPrefix(v string) predicate.Bot

UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.

func UUIDHasSuffix

func UUIDHasSuffix(v string) predicate.Bot

UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.

func UUIDIn

func UUIDIn(vs ...string) predicate.Bot

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v string) predicate.Bot

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v string) predicate.Bot

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v string) predicate.Bot

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

func UUIDNotIn(vs ...string) predicate.Bot

UUIDNotIn applies the NotIn predicate on the "uuid" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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