network

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the network type in the database.
	Label = "network"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// FieldUseragent holds the string denoting the useragent field in the database.
	FieldUseragent = "useragent"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"

	// Table holds the table name of the network in the database.
	Table = "networks"
	// EventsTable is the table the holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "event_network"
)

Variables

Columns holds all SQL columns for network fields.

Functions

func And

func And(predicates ...predicate.Network) predicate.Network

And groups list of predicates with the AND operator between them.

func HasEvents

func HasEvents() predicate.Network

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Network

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

func ID

func ID(id int) predicate.Network

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Network

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Network

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Network

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Network

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Network

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Network

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Network

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.Network

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.Network

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

func IPEQ(v string) predicate.Network

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.Network

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

func IPGT(v string) predicate.Network

IPGT applies the GT predicate on the "ip" field.

func IPGTE

func IPGTE(v string) predicate.Network

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.Network

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.Network

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.Network

IPIn applies the In predicate on the "ip" field.

func IPLT

func IPLT(v string) predicate.Network

IPLT applies the LT predicate on the "ip" field.

func IPLTE

func IPLTE(v string) predicate.Network

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

func IPNEQ(v string) predicate.Network

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.Network

IPNotIn applies the NotIn predicate on the "ip" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Network) predicate.Network

Or groups list of predicates with the OR operator between them.

func Useragent

func Useragent(v string) predicate.Network

Useragent applies equality check predicate on the "useragent" field. It's identical to UseragentEQ.

func UseragentContains

func UseragentContains(v string) predicate.Network

UseragentContains applies the Contains predicate on the "useragent" field.

func UseragentContainsFold

func UseragentContainsFold(v string) predicate.Network

UseragentContainsFold applies the ContainsFold predicate on the "useragent" field.

func UseragentEQ

func UseragentEQ(v string) predicate.Network

UseragentEQ applies the EQ predicate on the "useragent" field.

func UseragentEqualFold

func UseragentEqualFold(v string) predicate.Network

UseragentEqualFold applies the EqualFold predicate on the "useragent" field.

func UseragentGT

func UseragentGT(v string) predicate.Network

UseragentGT applies the GT predicate on the "useragent" field.

func UseragentGTE

func UseragentGTE(v string) predicate.Network

UseragentGTE applies the GTE predicate on the "useragent" field.

func UseragentHasPrefix

func UseragentHasPrefix(v string) predicate.Network

UseragentHasPrefix applies the HasPrefix predicate on the "useragent" field.

func UseragentHasSuffix

func UseragentHasSuffix(v string) predicate.Network

UseragentHasSuffix applies the HasSuffix predicate on the "useragent" field.

func UseragentIn

func UseragentIn(vs ...string) predicate.Network

UseragentIn applies the In predicate on the "useragent" field.

func UseragentIsNil

func UseragentIsNil() predicate.Network

UseragentIsNil applies the IsNil predicate on the "useragent" field.

func UseragentLT

func UseragentLT(v string) predicate.Network

UseragentLT applies the LT predicate on the "useragent" field.

func UseragentLTE

func UseragentLTE(v string) predicate.Network

UseragentLTE applies the LTE predicate on the "useragent" field.

func UseragentNEQ

func UseragentNEQ(v string) predicate.Network

UseragentNEQ applies the NEQ predicate on the "useragent" field.

func UseragentNotIn

func UseragentNotIn(vs ...string) predicate.Network

UseragentNotIn applies the NotIn predicate on the "useragent" field.

func UseragentNotNil

func UseragentNotNil() predicate.Network

UseragentNotNil applies the NotNil predicate on the "useragent" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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