Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Peer) predicate.Peer
- func HasEndpoints() predicate.Peer
- func HasEndpointsWith(preds ...predicate.Endpoint) predicate.Peer
- func ID(id int) predicate.Peer
- func IDEQ(id int) predicate.Peer
- func IDGT(id int) predicate.Peer
- func IDGTE(id int) predicate.Peer
- func IDIn(ids ...int) predicate.Peer
- func IDLT(id int) predicate.Peer
- func IDLTE(id int) predicate.Peer
- func IDNEQ(id int) predicate.Peer
- func IDNotIn(ids ...int) predicate.Peer
- func Not(p predicate.Peer) predicate.Peer
- func OperatorKey(v string) predicate.Peer
- func OperatorKeyContains(v string) predicate.Peer
- func OperatorKeyContainsFold(v string) predicate.Peer
- func OperatorKeyEQ(v string) predicate.Peer
- func OperatorKeyEqualFold(v string) predicate.Peer
- func OperatorKeyGT(v string) predicate.Peer
- func OperatorKeyGTE(v string) predicate.Peer
- func OperatorKeyHasPrefix(v string) predicate.Peer
- func OperatorKeyHasSuffix(v string) predicate.Peer
- func OperatorKeyIn(vs ...string) predicate.Peer
- func OperatorKeyLT(v string) predicate.Peer
- func OperatorKeyLTE(v string) predicate.Peer
- func OperatorKeyNEQ(v string) predicate.Peer
- func OperatorKeyNotIn(vs ...string) predicate.Peer
- func Or(predicates ...predicate.Peer) predicate.Peer
- func PublicKey(v string) predicate.Peer
- func PublicKeyContains(v string) predicate.Peer
- func PublicKeyContainsFold(v string) predicate.Peer
- func PublicKeyEQ(v string) predicate.Peer
- func PublicKeyEqualFold(v string) predicate.Peer
- func PublicKeyGT(v string) predicate.Peer
- func PublicKeyGTE(v string) predicate.Peer
- func PublicKeyHasPrefix(v string) predicate.Peer
- func PublicKeyHasSuffix(v string) predicate.Peer
- func PublicKeyIn(vs ...string) predicate.Peer
- func PublicKeyLT(v string) predicate.Peer
- func PublicKeyLTE(v string) predicate.Peer
- func PublicKeyNEQ(v string) predicate.Peer
- func PublicKeyNotIn(vs ...string) predicate.Peer
- func RemarksIsNil() predicate.Peer
- func RemarksNotNil() predicate.Peer
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldPublicKey, FieldOperatorKey, FieldRemarks, }
Columns holds all SQL columns for peer fields.
Functions ¶
func HasEndpoints ¶
HasEndpoints applies the HasEdge predicate on the "endpoints" edge.
func HasEndpointsWith ¶
HasEndpointsWith applies the HasEdge predicate on the "endpoints" edge with a given conditions (other predicates).
func OperatorKey ¶
OperatorKey applies equality check predicate on the "operator_key" field. It's identical to OperatorKeyEQ.
func OperatorKeyContains ¶
OperatorKeyContains applies the Contains predicate on the "operator_key" field.
func OperatorKeyContainsFold ¶
OperatorKeyContainsFold applies the ContainsFold predicate on the "operator_key" field.
func OperatorKeyEQ ¶
OperatorKeyEQ applies the EQ predicate on the "operator_key" field.
func OperatorKeyEqualFold ¶
OperatorKeyEqualFold applies the EqualFold predicate on the "operator_key" field.
func OperatorKeyGT ¶
OperatorKeyGT applies the GT predicate on the "operator_key" field.
func OperatorKeyGTE ¶
OperatorKeyGTE applies the GTE predicate on the "operator_key" field.
func OperatorKeyHasPrefix ¶
OperatorKeyHasPrefix applies the HasPrefix predicate on the "operator_key" field.
func OperatorKeyHasSuffix ¶
OperatorKeyHasSuffix applies the HasSuffix predicate on the "operator_key" field.
func OperatorKeyIn ¶
OperatorKeyIn applies the In predicate on the "operator_key" field.
func OperatorKeyLT ¶
OperatorKeyLT applies the LT predicate on the "operator_key" field.
func OperatorKeyLTE ¶
OperatorKeyLTE applies the LTE predicate on the "operator_key" field.
func OperatorKeyNEQ ¶
OperatorKeyNEQ applies the NEQ predicate on the "operator_key" field.
func OperatorKeyNotIn ¶
OperatorKeyNotIn applies the NotIn predicate on the "operator_key" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyContains ¶
PublicKeyContains applies the Contains predicate on the "public_key" field.
func PublicKeyContainsFold ¶
PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyEqualFold ¶
PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyHasPrefix ¶
PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.
func PublicKeyHasSuffix ¶
PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func RemarksIsNil ¶
RemarksIsNil applies the IsNil predicate on the "remarks" field.
func RemarksNotNil ¶
RemarksNotNil applies the NotNil predicate on the "remarks" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.