peer

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the peer type in the database.
	Label = "peer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPublicKey holds the string denoting the public_key field in the database.
	FieldPublicKey = "public_key"
	// FieldOperatorKey holds the string denoting the operator_key field in the database.
	FieldOperatorKey = "operator_key"
	// FieldRemarks holds the string denoting the remarks field in the database.
	FieldRemarks = "remarks"

	// EdgeEndpoints holds the string denoting the endpoints edge name in mutations.
	EdgeEndpoints = "endpoints"

	// Table holds the table name of the peer in the database.
	Table = "peers"
	// EndpointsTable is the table the holds the endpoints relation/edge.
	EndpointsTable = "endpoints"
	// EndpointsInverseTable is the table name for the Endpoint entity.
	// It exists in this package in order to avoid circular dependency with the "endpoint" package.
	EndpointsInverseTable = "endpoints"
	// EndpointsColumn is the table column denoting the endpoints relation/edge.
	EndpointsColumn = "peer_endpoints"
)

Variables

View Source
var (
	// PublicKeyValidator is a validator for the "public_key" field. It is called by the builders before save.
	PublicKeyValidator func(string) error
	// OperatorKeyValidator is a validator for the "operator_key" field. It is called by the builders before save.
	OperatorKeyValidator func(string) error
)

Columns holds all SQL columns for peer fields.

Functions

func And

func And(predicates ...predicate.Peer) predicate.Peer

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

func HasEndpoints

func HasEndpoints() predicate.Peer

HasEndpoints applies the HasEdge predicate on the "endpoints" edge.

func HasEndpointsWith

func HasEndpointsWith(preds ...predicate.Endpoint) predicate.Peer

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

func ID

func ID(id int) predicate.Peer

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Peer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Peer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Peer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Peer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Peer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Peer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func OperatorKey

func OperatorKey(v string) predicate.Peer

OperatorKey applies equality check predicate on the "operator_key" field. It's identical to OperatorKeyEQ.

func OperatorKeyContains

func OperatorKeyContains(v string) predicate.Peer

OperatorKeyContains applies the Contains predicate on the "operator_key" field.

func OperatorKeyContainsFold

func OperatorKeyContainsFold(v string) predicate.Peer

OperatorKeyContainsFold applies the ContainsFold predicate on the "operator_key" field.

func OperatorKeyEQ

func OperatorKeyEQ(v string) predicate.Peer

OperatorKeyEQ applies the EQ predicate on the "operator_key" field.

func OperatorKeyEqualFold

func OperatorKeyEqualFold(v string) predicate.Peer

OperatorKeyEqualFold applies the EqualFold predicate on the "operator_key" field.

func OperatorKeyGT

func OperatorKeyGT(v string) predicate.Peer

OperatorKeyGT applies the GT predicate on the "operator_key" field.

func OperatorKeyGTE

func OperatorKeyGTE(v string) predicate.Peer

OperatorKeyGTE applies the GTE predicate on the "operator_key" field.

func OperatorKeyHasPrefix

func OperatorKeyHasPrefix(v string) predicate.Peer

OperatorKeyHasPrefix applies the HasPrefix predicate on the "operator_key" field.

func OperatorKeyHasSuffix

func OperatorKeyHasSuffix(v string) predicate.Peer

OperatorKeyHasSuffix applies the HasSuffix predicate on the "operator_key" field.

func OperatorKeyIn

func OperatorKeyIn(vs ...string) predicate.Peer

OperatorKeyIn applies the In predicate on the "operator_key" field.

func OperatorKeyLT

func OperatorKeyLT(v string) predicate.Peer

OperatorKeyLT applies the LT predicate on the "operator_key" field.

func OperatorKeyLTE

func OperatorKeyLTE(v string) predicate.Peer

OperatorKeyLTE applies the LTE predicate on the "operator_key" field.

func OperatorKeyNEQ

func OperatorKeyNEQ(v string) predicate.Peer

OperatorKeyNEQ applies the NEQ predicate on the "operator_key" field.

func OperatorKeyNotIn

func OperatorKeyNotIn(vs ...string) predicate.Peer

OperatorKeyNotIn applies the NotIn predicate on the "operator_key" field.

func Or

func Or(predicates ...predicate.Peer) predicate.Peer

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

func PublicKey

func PublicKey(v string) predicate.Peer

PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.

func PublicKeyContains

func PublicKeyContains(v string) predicate.Peer

PublicKeyContains applies the Contains predicate on the "public_key" field.

func PublicKeyContainsFold

func PublicKeyContainsFold(v string) predicate.Peer

PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.

func PublicKeyEQ

func PublicKeyEQ(v string) predicate.Peer

PublicKeyEQ applies the EQ predicate on the "public_key" field.

func PublicKeyEqualFold

func PublicKeyEqualFold(v string) predicate.Peer

PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.

func PublicKeyGT

func PublicKeyGT(v string) predicate.Peer

PublicKeyGT applies the GT predicate on the "public_key" field.

func PublicKeyGTE

func PublicKeyGTE(v string) predicate.Peer

PublicKeyGTE applies the GTE predicate on the "public_key" field.

func PublicKeyHasPrefix

func PublicKeyHasPrefix(v string) predicate.Peer

PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.

func PublicKeyHasSuffix

func PublicKeyHasSuffix(v string) predicate.Peer

PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.

func PublicKeyIn

func PublicKeyIn(vs ...string) predicate.Peer

PublicKeyIn applies the In predicate on the "public_key" field.

func PublicKeyLT

func PublicKeyLT(v string) predicate.Peer

PublicKeyLT applies the LT predicate on the "public_key" field.

func PublicKeyLTE

func PublicKeyLTE(v string) predicate.Peer

PublicKeyLTE applies the LTE predicate on the "public_key" field.

func PublicKeyNEQ

func PublicKeyNEQ(v string) predicate.Peer

PublicKeyNEQ applies the NEQ predicate on the "public_key" field.

func PublicKeyNotIn

func PublicKeyNotIn(vs ...string) predicate.Peer

PublicKeyNotIn applies the NotIn predicate on the "public_key" field.

func RemarksIsNil

func RemarksIsNil() predicate.Peer

RemarksIsNil applies the IsNil predicate on the "remarks" field.

func RemarksNotNil

func RemarksNotNil() predicate.Peer

RemarksNotNil applies the NotNil predicate on the "remarks" 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