gateway

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for gateway fields.

Functions

func And

func And(predicates ...predicate.Gateway) predicate.Gateway

And groups predicates with the AND operator between them.

func AuthToken added in v0.0.12

func AuthToken(v string) predicate.Gateway

AuthToken applies equality check predicate on the "auth_token" field. It's identical to AuthTokenEQ.

func AuthTokenContains added in v0.0.12

func AuthTokenContains(v string) predicate.Gateway

AuthTokenContains applies the Contains predicate on the "auth_token" field.

func AuthTokenContainsFold added in v0.0.12

func AuthTokenContainsFold(v string) predicate.Gateway

AuthTokenContainsFold applies the ContainsFold predicate on the "auth_token" field.

func AuthTokenEQ added in v0.0.12

func AuthTokenEQ(v string) predicate.Gateway

AuthTokenEQ applies the EQ predicate on the "auth_token" field.

func AuthTokenEqualFold added in v0.0.12

func AuthTokenEqualFold(v string) predicate.Gateway

AuthTokenEqualFold applies the EqualFold predicate on the "auth_token" field.

func AuthTokenGT added in v0.0.12

func AuthTokenGT(v string) predicate.Gateway

AuthTokenGT applies the GT predicate on the "auth_token" field.

func AuthTokenGTE added in v0.0.12

func AuthTokenGTE(v string) predicate.Gateway

AuthTokenGTE applies the GTE predicate on the "auth_token" field.

func AuthTokenHasPrefix added in v0.0.12

func AuthTokenHasPrefix(v string) predicate.Gateway

AuthTokenHasPrefix applies the HasPrefix predicate on the "auth_token" field.

func AuthTokenHasSuffix added in v0.0.12

func AuthTokenHasSuffix(v string) predicate.Gateway

AuthTokenHasSuffix applies the HasSuffix predicate on the "auth_token" field.

func AuthTokenIn added in v0.0.12

func AuthTokenIn(vs ...string) predicate.Gateway

AuthTokenIn applies the In predicate on the "auth_token" field.

func AuthTokenLT added in v0.0.12

func AuthTokenLT(v string) predicate.Gateway

AuthTokenLT applies the LT predicate on the "auth_token" field.

func AuthTokenLTE added in v0.0.12

func AuthTokenLTE(v string) predicate.Gateway

AuthTokenLTE applies the LTE predicate on the "auth_token" field.

func AuthTokenNEQ added in v0.0.12

func AuthTokenNEQ(v string) predicate.Gateway

AuthTokenNEQ applies the NEQ predicate on the "auth_token" field.

func AuthTokenNotIn added in v0.0.12

func AuthTokenNotIn(vs ...string) predicate.Gateway

AuthTokenNotIn applies the NotIn predicate on the "auth_token" field.

func ID

func ID(id uuid.UUID) predicate.Gateway

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Gateway

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Gateway

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Gateway

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Gateway

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Gateway

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Gateway

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Gateway

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Gateway

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Gateway

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

func IPContains

func IPContains(v string) predicate.Gateway

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

func IPContainsFold

func IPContainsFold(v string) predicate.Gateway

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

func IPEQ

func IPEQ(v string) predicate.Gateway

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

func IPEqualFold

func IPEqualFold(v string) predicate.Gateway

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

func IPGT

func IPGT(v string) predicate.Gateway

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

func IPGTE

func IPGTE(v string) predicate.Gateway

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

func IPHasPrefix

func IPHasPrefix(v string) predicate.Gateway

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

func IPHasSuffix

func IPHasSuffix(v string) predicate.Gateway

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

func IPIn

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

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

func IPLT

func IPLT(v string) predicate.Gateway

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

func IPLTE

func IPLTE(v string) predicate.Gateway

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

func IPNEQ

func IPNEQ(v string) predicate.Gateway

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

func IPNotIn

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

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

func InternalIP

func InternalIP(v string) predicate.Gateway

InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.

func InternalIPContains

func InternalIPContains(v string) predicate.Gateway

InternalIPContains applies the Contains predicate on the "internal_ip" field.

func InternalIPContainsFold

func InternalIPContainsFold(v string) predicate.Gateway

InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.

func InternalIPEQ

func InternalIPEQ(v string) predicate.Gateway

InternalIPEQ applies the EQ predicate on the "internal_ip" field.

func InternalIPEqualFold

func InternalIPEqualFold(v string) predicate.Gateway

InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.

func InternalIPGT

func InternalIPGT(v string) predicate.Gateway

InternalIPGT applies the GT predicate on the "internal_ip" field.

func InternalIPGTE

func InternalIPGTE(v string) predicate.Gateway

InternalIPGTE applies the GTE predicate on the "internal_ip" field.

func InternalIPHasPrefix

func InternalIPHasPrefix(v string) predicate.Gateway

InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.

func InternalIPHasSuffix

func InternalIPHasSuffix(v string) predicate.Gateway

InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.

func InternalIPIn

func InternalIPIn(vs ...string) predicate.Gateway

InternalIPIn applies the In predicate on the "internal_ip" field.

func InternalIPLT

func InternalIPLT(v string) predicate.Gateway

InternalIPLT applies the LT predicate on the "internal_ip" field.

func InternalIPLTE

func InternalIPLTE(v string) predicate.Gateway

InternalIPLTE applies the LTE predicate on the "internal_ip" field.

func InternalIPNEQ

func InternalIPNEQ(v string) predicate.Gateway

InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.

func InternalIPNotIn

func InternalIPNotIn(vs ...string) predicate.Gateway

InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.

func Name

func Name(v string) predicate.Gateway

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Gateway

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Gateway

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Gateway

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Gateway

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Gateway

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Gateway

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Gateway

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Gateway

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Gateway

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Gateway

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Gateway

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Gateway

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Gateway

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Gateway) predicate.Gateway

Or groups predicates with the OR operator between them.

func Port

func Port(v int32) predicate.Gateway

Port applies equality check predicate on the "port" field. It's identical to PortEQ.

func PortEQ

func PortEQ(v int32) predicate.Gateway

PortEQ applies the EQ predicate on the "port" field.

func PortGT

func PortGT(v int32) predicate.Gateway

PortGT applies the GT predicate on the "port" field.

func PortGTE

func PortGTE(v int32) predicate.Gateway

PortGTE applies the GTE predicate on the "port" field.

func PortIn

func PortIn(vs ...int32) predicate.Gateway

PortIn applies the In predicate on the "port" field.

func PortLT

func PortLT(v int32) predicate.Gateway

PortLT applies the LT predicate on the "port" field.

func PortLTE

func PortLTE(v int32) predicate.Gateway

PortLTE applies the LTE predicate on the "port" field.

func PortNEQ

func PortNEQ(v int32) predicate.Gateway

PortNEQ applies the NEQ predicate on the "port" field.

func PortNotIn

func PortNotIn(vs ...int32) predicate.Gateway

PortNotIn applies the NotIn predicate on the "port" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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