networkfacility

package
v1.18.14 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the networkfacility type in the database.
	Label = "network_facility"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFacID holds the string denoting the fac_id field in the database.
	FieldFacID = "fac_id"
	// FieldNetID holds the string denoting the net_id field in the database.
	FieldNetID = "net_id"
	// FieldLocalAsn holds the string denoting the local_asn field in the database.
	FieldLocalAsn = "local_asn"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldCountry holds the string denoting the country field in the database.
	FieldCountry = "country"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldUpdated holds the string denoting the updated field in the database.
	FieldUpdated = "updated"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// EdgeFacility holds the string denoting the facility edge name in mutations.
	EdgeFacility = "facility"
	// EdgeNetwork holds the string denoting the network edge name in mutations.
	EdgeNetwork = "network"
	// Table holds the table name of the networkfacility in the database.
	Table = "network_facilities"
	// FacilityTable is the table that holds the facility relation/edge.
	FacilityTable = "network_facilities"
	// FacilityInverseTable is the table name for the Facility entity.
	// It exists in this package in order to avoid circular dependency with the "facility" package.
	FacilityInverseTable = "facilities"
	// FacilityColumn is the table column denoting the facility relation/edge.
	FacilityColumn = "fac_id"
	// NetworkTable is the table that holds the network relation/edge.
	NetworkTable = "network_facilities"
	// NetworkInverseTable is the table name for the Network entity.
	// It exists in this package in order to avoid circular dependency with the "network" package.
	NetworkInverseTable = "networks"
	// NetworkColumn is the table column denoting the network relation/edge.
	NetworkColumn = "net_id"
)

Variables

View Source
var (
	// DefaultName holds the default value on creation for the "name" field.
	DefaultName string
	// DefaultCity holds the default value on creation for the "city" field.
	DefaultCity string
	// DefaultCountry holds the default value on creation for the "country" field.
	DefaultCountry string
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(int) error
)

Columns holds all SQL columns for networkfacility fields.

Functions

func And

And groups predicates with the AND operator between them.

func City

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.NetworkFacility

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.NetworkFacility

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.NetworkFacility

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.NetworkFacility

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.NetworkFacility

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.NetworkFacility

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

func CityIn(vs ...string) predicate.NetworkFacility

CityIn applies the In predicate on the "city" field.

func CityIsNil

func CityIsNil() predicate.NetworkFacility

CityIsNil applies the IsNil predicate on the "city" field.

func CityLT

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.NetworkFacility

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.NetworkFacility

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

func CityNotIn(vs ...string) predicate.NetworkFacility

CityNotIn applies the NotIn predicate on the "city" field.

func CityNotNil

func CityNotNil() predicate.NetworkFacility

CityNotNil applies the NotNil predicate on the "city" field.

func Country

func Country(v string) predicate.NetworkFacility

Country applies equality check predicate on the "country" field. It's identical to CountryEQ.

func CountryContains

func CountryContains(v string) predicate.NetworkFacility

CountryContains applies the Contains predicate on the "country" field.

func CountryContainsFold

func CountryContainsFold(v string) predicate.NetworkFacility

CountryContainsFold applies the ContainsFold predicate on the "country" field.

func CountryEQ

func CountryEQ(v string) predicate.NetworkFacility

CountryEQ applies the EQ predicate on the "country" field.

func CountryEqualFold

func CountryEqualFold(v string) predicate.NetworkFacility

CountryEqualFold applies the EqualFold predicate on the "country" field.

func CountryGT

func CountryGT(v string) predicate.NetworkFacility

CountryGT applies the GT predicate on the "country" field.

func CountryGTE

func CountryGTE(v string) predicate.NetworkFacility

CountryGTE applies the GTE predicate on the "country" field.

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.NetworkFacility

CountryHasPrefix applies the HasPrefix predicate on the "country" field.

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.NetworkFacility

CountryHasSuffix applies the HasSuffix predicate on the "country" field.

func CountryIn

func CountryIn(vs ...string) predicate.NetworkFacility

CountryIn applies the In predicate on the "country" field.

func CountryIsNil

func CountryIsNil() predicate.NetworkFacility

CountryIsNil applies the IsNil predicate on the "country" field.

func CountryLT

func CountryLT(v string) predicate.NetworkFacility

CountryLT applies the LT predicate on the "country" field.

func CountryLTE

func CountryLTE(v string) predicate.NetworkFacility

CountryLTE applies the LTE predicate on the "country" field.

func CountryNEQ

func CountryNEQ(v string) predicate.NetworkFacility

CountryNEQ applies the NEQ predicate on the "country" field.

func CountryNotIn

func CountryNotIn(vs ...string) predicate.NetworkFacility

CountryNotIn applies the NotIn predicate on the "country" field.

func CountryNotNil

func CountryNotNil() predicate.NetworkFacility

CountryNotNil applies the NotNil predicate on the "country" field.

func Created

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.NetworkFacility

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.NetworkFacility

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.NetworkFacility

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.NetworkFacility

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.NetworkFacility

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.NetworkFacility

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.NetworkFacility

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.NetworkFacility

CreatedNotIn applies the NotIn predicate on the "created" field.

func FacID

func FacID(v int) predicate.NetworkFacility

FacID applies equality check predicate on the "fac_id" field. It's identical to FacIDEQ.

func FacIDEQ

func FacIDEQ(v int) predicate.NetworkFacility

FacIDEQ applies the EQ predicate on the "fac_id" field.

func FacIDIn

func FacIDIn(vs ...int) predicate.NetworkFacility

FacIDIn applies the In predicate on the "fac_id" field.

func FacIDIsNil

func FacIDIsNil() predicate.NetworkFacility

FacIDIsNil applies the IsNil predicate on the "fac_id" field.

func FacIDNEQ

func FacIDNEQ(v int) predicate.NetworkFacility

FacIDNEQ applies the NEQ predicate on the "fac_id" field.

func FacIDNotIn

func FacIDNotIn(vs ...int) predicate.NetworkFacility

FacIDNotIn applies the NotIn predicate on the "fac_id" field.

func FacIDNotNil

func FacIDNotNil() predicate.NetworkFacility

FacIDNotNil applies the NotNil predicate on the "fac_id" field.

func HasFacility

func HasFacility() predicate.NetworkFacility

HasFacility applies the HasEdge predicate on the "facility" edge.

func HasFacilityWith

func HasFacilityWith(preds ...predicate.Facility) predicate.NetworkFacility

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

func HasNetwork

func HasNetwork() predicate.NetworkFacility

HasNetwork applies the HasEdge predicate on the "network" edge.

func HasNetworkWith

func HasNetworkWith(preds ...predicate.Network) predicate.NetworkFacility

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NetworkFacility

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NetworkFacility

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NetworkFacility

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NetworkFacility

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NetworkFacility

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NetworkFacility

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LocalAsn

func LocalAsn(v int) predicate.NetworkFacility

LocalAsn applies equality check predicate on the "local_asn" field. It's identical to LocalAsnEQ.

func LocalAsnEQ

func LocalAsnEQ(v int) predicate.NetworkFacility

LocalAsnEQ applies the EQ predicate on the "local_asn" field.

func LocalAsnGT

func LocalAsnGT(v int) predicate.NetworkFacility

LocalAsnGT applies the GT predicate on the "local_asn" field.

func LocalAsnGTE

func LocalAsnGTE(v int) predicate.NetworkFacility

LocalAsnGTE applies the GTE predicate on the "local_asn" field.

func LocalAsnIn

func LocalAsnIn(vs ...int) predicate.NetworkFacility

LocalAsnIn applies the In predicate on the "local_asn" field.

func LocalAsnLT

func LocalAsnLT(v int) predicate.NetworkFacility

LocalAsnLT applies the LT predicate on the "local_asn" field.

func LocalAsnLTE

func LocalAsnLTE(v int) predicate.NetworkFacility

LocalAsnLTE applies the LTE predicate on the "local_asn" field.

func LocalAsnNEQ

func LocalAsnNEQ(v int) predicate.NetworkFacility

LocalAsnNEQ applies the NEQ predicate on the "local_asn" field.

func LocalAsnNotIn

func LocalAsnNotIn(vs ...int) predicate.NetworkFacility

LocalAsnNotIn applies the NotIn predicate on the "local_asn" field.

func Name

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

func NameContains

func NameContains(v string) predicate.NetworkFacility

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

func NameContainsFold

func NameContainsFold(v string) predicate.NetworkFacility

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.NetworkFacility

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

func NameGT

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

func NameGTE

func NameGTE(v string) predicate.NetworkFacility

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.NetworkFacility

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.NetworkFacility

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.NetworkFacility

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

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

func NameLTE

func NameLTE(v string) predicate.NetworkFacility

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

func NameNEQ

func NameNEQ(v string) predicate.NetworkFacility

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.NetworkFacility

NameNotNil applies the NotNil predicate on the "name" field.

func NetID

func NetID(v int) predicate.NetworkFacility

NetID applies equality check predicate on the "net_id" field. It's identical to NetIDEQ.

func NetIDEQ

func NetIDEQ(v int) predicate.NetworkFacility

NetIDEQ applies the EQ predicate on the "net_id" field.

func NetIDIn

func NetIDIn(vs ...int) predicate.NetworkFacility

NetIDIn applies the In predicate on the "net_id" field.

func NetIDIsNil

func NetIDIsNil() predicate.NetworkFacility

NetIDIsNil applies the IsNil predicate on the "net_id" field.

func NetIDNEQ

func NetIDNEQ(v int) predicate.NetworkFacility

NetIDNEQ applies the NEQ predicate on the "net_id" field.

func NetIDNotIn

func NetIDNotIn(vs ...int) predicate.NetworkFacility

NetIDNotIn applies the NotIn predicate on the "net_id" field.

func NetIDNotNil

func NetIDNotNil() predicate.NetworkFacility

NetIDNotNil applies the NotNil predicate on the "net_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.NetworkFacility

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.NetworkFacility

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.NetworkFacility

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.NetworkFacility

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.NetworkFacility

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.NetworkFacility

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.NetworkFacility

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.NetworkFacility

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.NetworkFacility

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.NetworkFacility

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.NetworkFacility

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.NetworkFacility

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.NetworkFacility

StatusNotIn applies the NotIn predicate on the "status" field.

func Updated

Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.

func UpdatedEQ

func UpdatedEQ(v time.Time) predicate.NetworkFacility

UpdatedEQ applies the EQ predicate on the "updated" field.

func UpdatedGT

func UpdatedGT(v time.Time) predicate.NetworkFacility

UpdatedGT applies the GT predicate on the "updated" field.

func UpdatedGTE

func UpdatedGTE(v time.Time) predicate.NetworkFacility

UpdatedGTE applies the GTE predicate on the "updated" field.

func UpdatedIn

func UpdatedIn(vs ...time.Time) predicate.NetworkFacility

UpdatedIn applies the In predicate on the "updated" field.

func UpdatedLT

func UpdatedLT(v time.Time) predicate.NetworkFacility

UpdatedLT applies the LT predicate on the "updated" field.

func UpdatedLTE

func UpdatedLTE(v time.Time) predicate.NetworkFacility

UpdatedLTE applies the LTE predicate on the "updated" field.

func UpdatedNEQ

func UpdatedNEQ(v time.Time) predicate.NetworkFacility

UpdatedNEQ applies the NEQ predicate on the "updated" field.

func UpdatedNotIn

func UpdatedNotIn(vs ...time.Time) predicate.NetworkFacility

UpdatedNotIn applies the NotIn predicate on the "updated" 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 NetworkFacility queries.

func ByCity

func ByCity(opts ...sql.OrderTermOption) OrderOption

ByCity orders the results by the city field.

func ByCountry

func ByCountry(opts ...sql.OrderTermOption) OrderOption

ByCountry orders the results by the country field.

func ByCreated

func ByCreated(opts ...sql.OrderTermOption) OrderOption

ByCreated orders the results by the created field.

func ByFacID

func ByFacID(opts ...sql.OrderTermOption) OrderOption

ByFacID orders the results by the fac_id field.

func ByFacilityField

func ByFacilityField(field string, opts ...sql.OrderTermOption) OrderOption

ByFacilityField orders the results by facility field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLocalAsn

func ByLocalAsn(opts ...sql.OrderTermOption) OrderOption

ByLocalAsn orders the results by the local_asn field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByNetID

func ByNetID(opts ...sql.OrderTermOption) OrderOption

ByNetID orders the results by the net_id field.

func ByNetworkField

func ByNetworkField(field string, opts ...sql.OrderTermOption) OrderOption

ByNetworkField orders the results by network field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdated

func ByUpdated(opts ...sql.OrderTermOption) OrderOption

ByUpdated orders the results by the updated field.

Jump to

Keyboard shortcuts

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