Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Gateway) predicate.Gateway
- func AuthToken(v string) predicate.Gateway
- func AuthTokenContains(v string) predicate.Gateway
- func AuthTokenContainsFold(v string) predicate.Gateway
- func AuthTokenEQ(v string) predicate.Gateway
- func AuthTokenEqualFold(v string) predicate.Gateway
- func AuthTokenGT(v string) predicate.Gateway
- func AuthTokenGTE(v string) predicate.Gateway
- func AuthTokenHasPrefix(v string) predicate.Gateway
- func AuthTokenHasSuffix(v string) predicate.Gateway
- func AuthTokenIn(vs ...string) predicate.Gateway
- func AuthTokenLT(v string) predicate.Gateway
- func AuthTokenLTE(v string) predicate.Gateway
- func AuthTokenNEQ(v string) predicate.Gateway
- func AuthTokenNotIn(vs ...string) predicate.Gateway
- func ID(id uuid.UUID) predicate.Gateway
- func IDEQ(id uuid.UUID) predicate.Gateway
- func IDGT(id uuid.UUID) predicate.Gateway
- func IDGTE(id uuid.UUID) predicate.Gateway
- func IDIn(ids ...uuid.UUID) predicate.Gateway
- func IDLT(id uuid.UUID) predicate.Gateway
- func IDLTE(id uuid.UUID) predicate.Gateway
- func IDNEQ(id uuid.UUID) predicate.Gateway
- func IDNotIn(ids ...uuid.UUID) predicate.Gateway
- func IP(v string) predicate.Gateway
- func IPContains(v string) predicate.Gateway
- func IPContainsFold(v string) predicate.Gateway
- func IPEQ(v string) predicate.Gateway
- func IPEqualFold(v string) predicate.Gateway
- func IPGT(v string) predicate.Gateway
- func IPGTE(v string) predicate.Gateway
- func IPHasPrefix(v string) predicate.Gateway
- func IPHasSuffix(v string) predicate.Gateway
- func IPIn(vs ...string) predicate.Gateway
- func IPLT(v string) predicate.Gateway
- func IPLTE(v string) predicate.Gateway
- func IPNEQ(v string) predicate.Gateway
- func IPNotIn(vs ...string) predicate.Gateway
- func InternalIP(v string) predicate.Gateway
- func InternalIPContains(v string) predicate.Gateway
- func InternalIPContainsFold(v string) predicate.Gateway
- func InternalIPEQ(v string) predicate.Gateway
- func InternalIPEqualFold(v string) predicate.Gateway
- func InternalIPGT(v string) predicate.Gateway
- func InternalIPGTE(v string) predicate.Gateway
- func InternalIPHasPrefix(v string) predicate.Gateway
- func InternalIPHasSuffix(v string) predicate.Gateway
- func InternalIPIn(vs ...string) predicate.Gateway
- func InternalIPLT(v string) predicate.Gateway
- func InternalIPLTE(v string) predicate.Gateway
- func InternalIPNEQ(v string) predicate.Gateway
- func InternalIPNotIn(vs ...string) predicate.Gateway
- func Name(v string) predicate.Gateway
- func NameContains(v string) predicate.Gateway
- func NameContainsFold(v string) predicate.Gateway
- func NameEQ(v string) predicate.Gateway
- func NameEqualFold(v string) predicate.Gateway
- func NameGT(v string) predicate.Gateway
- func NameGTE(v string) predicate.Gateway
- func NameHasPrefix(v string) predicate.Gateway
- func NameHasSuffix(v string) predicate.Gateway
- func NameIn(vs ...string) predicate.Gateway
- func NameLT(v string) predicate.Gateway
- func NameLTE(v string) predicate.Gateway
- func NameNEQ(v string) predicate.Gateway
- func NameNotIn(vs ...string) predicate.Gateway
- func Not(p predicate.Gateway) predicate.Gateway
- func Or(predicates ...predicate.Gateway) predicate.Gateway
- func Port(v int32) predicate.Gateway
- func PortEQ(v int32) predicate.Gateway
- func PortGT(v int32) predicate.Gateway
- func PortGTE(v int32) predicate.Gateway
- func PortIn(vs ...int32) predicate.Gateway
- func PortLT(v int32) predicate.Gateway
- func PortLTE(v int32) predicate.Gateway
- func PortNEQ(v int32) predicate.Gateway
- func PortNotIn(vs ...int32) predicate.Gateway
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthToken(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIP(opts ...sql.OrderTermOption) OrderOption
- func ByInternalIP(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPort(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the gateway type in the database. Label = "gateway" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // FieldPort holds the string denoting the port field in the database. FieldPort = "port" // FieldInternalIP holds the string denoting the internal_ip field in the database. FieldInternalIP = "internal_ip" // FieldAuthToken holds the string denoting the auth_token field in the database. FieldAuthToken = "auth_token" // Table holds the table name of the gateway in the database. Table = "gateways" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldIP, FieldPort, FieldInternalIP, FieldAuthToken, }
Columns holds all SQL columns for gateway fields.
Functions ¶
func AuthToken ¶ added in v0.0.12
AuthToken applies equality check predicate on the "auth_token" field. It's identical to AuthTokenEQ.
func AuthTokenContains ¶ added in v0.0.12
AuthTokenContains applies the Contains predicate on the "auth_token" field.
func AuthTokenContainsFold ¶ added in v0.0.12
AuthTokenContainsFold applies the ContainsFold predicate on the "auth_token" field.
func AuthTokenEQ ¶ added in v0.0.12
AuthTokenEQ applies the EQ predicate on the "auth_token" field.
func AuthTokenEqualFold ¶ added in v0.0.12
AuthTokenEqualFold applies the EqualFold predicate on the "auth_token" field.
func AuthTokenGT ¶ added in v0.0.12
AuthTokenGT applies the GT predicate on the "auth_token" field.
func AuthTokenGTE ¶ added in v0.0.12
AuthTokenGTE applies the GTE predicate on the "auth_token" field.
func AuthTokenHasPrefix ¶ added in v0.0.12
AuthTokenHasPrefix applies the HasPrefix predicate on the "auth_token" field.
func AuthTokenHasSuffix ¶ added in v0.0.12
AuthTokenHasSuffix applies the HasSuffix predicate on the "auth_token" field.
func AuthTokenIn ¶ added in v0.0.12
AuthTokenIn applies the In predicate on the "auth_token" field.
func AuthTokenLT ¶ added in v0.0.12
AuthTokenLT applies the LT predicate on the "auth_token" field.
func AuthTokenLTE ¶ added in v0.0.12
AuthTokenLTE applies the LTE predicate on the "auth_token" field.
func AuthTokenNEQ ¶ added in v0.0.12
AuthTokenNEQ applies the NEQ predicate on the "auth_token" field.
func AuthTokenNotIn ¶ added in v0.0.12
AuthTokenNotIn applies the NotIn predicate on the "auth_token" field.
func IPContains ¶
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func InternalIP ¶
InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.
func InternalIPContains ¶
InternalIPContains applies the Contains predicate on the "internal_ip" field.
func InternalIPContainsFold ¶
InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.
func InternalIPEQ ¶
InternalIPEQ applies the EQ predicate on the "internal_ip" field.
func InternalIPEqualFold ¶
InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.
func InternalIPGT ¶
InternalIPGT applies the GT predicate on the "internal_ip" field.
func InternalIPGTE ¶
InternalIPGTE applies the GTE predicate on the "internal_ip" field.
func InternalIPHasPrefix ¶
InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.
func InternalIPHasSuffix ¶
InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.
func InternalIPIn ¶
InternalIPIn applies the In predicate on the "internal_ip" field.
func InternalIPLT ¶
InternalIPLT applies the LT predicate on the "internal_ip" field.
func InternalIPLTE ¶
InternalIPLTE applies the LTE predicate on the "internal_ip" field.
func InternalIPNEQ ¶
InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.
func InternalIPNotIn ¶
InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Gateway queries.
func ByAuthToken ¶ added in v0.0.12
func ByAuthToken(opts ...sql.OrderTermOption) OrderOption
ByAuthToken orders the results by the auth_token field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIP ¶
func ByIP(opts ...sql.OrderTermOption) OrderOption
ByIP orders the results by the ip field.
func ByInternalIP ¶
func ByInternalIP(opts ...sql.OrderTermOption) OrderOption
ByInternalIP orders the results by the internal_ip field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPort ¶
func ByPort(opts ...sql.OrderTermOption) OrderOption
ByPort orders the results by the port field.