rest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: BSD-3-Clause Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultPageConfig defines the page configuration for LIST-related endpoints
	// for all entities by default. If the configuration is not overridden for a
	// specific entity, this will be used.
	DefaultPageConfig = &PageConfig{
		MinItemsPerPage: 1,
		ItemsPerPage:    10,
		MaxItemsPerPage: 100,
	}
	// CampuPageConfig defines the page configuration for LIST-related endpoints
	// for Campu.
	CampuPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// CarrierPageConfig defines the page configuration for LIST-related endpoints
	// for Carrier.
	CarrierPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// CarrierFacilityPageConfig defines the page configuration for LIST-related endpoints
	// for CarrierFacility.
	CarrierFacilityPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// FacilityPageConfig defines the page configuration for LIST-related endpoints
	// for Facility.
	FacilityPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// InternetExchangePageConfig defines the page configuration for LIST-related endpoints
	// for InternetExchange.
	InternetExchangePageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// IxFacilityPageConfig defines the page configuration for LIST-related endpoints
	// for IxFacility.
	IxFacilityPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// IxLanPageConfig defines the page configuration for LIST-related endpoints
	// for IxLan.
	IxLanPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// IxPrefixPageConfig defines the page configuration for LIST-related endpoints
	// for IxPrefix.
	IxPrefixPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// NetworkPageConfig defines the page configuration for LIST-related endpoints
	// for Network.
	NetworkPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// NetworkFacilityPageConfig defines the page configuration for LIST-related endpoints
	// for NetworkFacility.
	NetworkFacilityPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// NetworkIxLanPageConfig defines the page configuration for LIST-related endpoints
	// for NetworkIxLan.
	NetworkIxLanPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// OrganizationPageConfig defines the page configuration for LIST-related endpoints
	// for Organization.
	OrganizationPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
	// PocPageConfig defines the page configuration for LIST-related endpoints
	// for Poc.
	PocPageConfig = &PageConfig{
		MinItemsPerPage: DefaultPageConfig.MinItemsPerPage,
		ItemsPerPage:    DefaultPageConfig.ItemsPerPage,
		MaxItemsPerPage: DefaultPageConfig.MaxItemsPerPage,
	}
)
View Source
var (
	// DefaultDecoder is the default decoder used by Bind. You can either override
	// this, or provide your own. Make sure it is set before Bind is called.
	DefaultDecoder = form.NewDecoder()

	// DefaultDecodeMaxMemory is the maximum amount of memory in bytes that will be
	// used for decoding multipart/form-data requests.
	DefaultDecodeMaxMemory int64 = 8 << 20
)
View Source
var (

	// OrderDirections are the allowed order directions that can be provided.
	OrderDirections = []orderDirection{orderAsc, orderDesc}
	// CampuSortConfig defines the default sort configuration for Campu.
	CampuSortConfig = &SortConfig{
		Fields: []string{
			"facilities.count",
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// CarrierSortConfig defines the default sort configuration for Carrier.
	CarrierSortConfig = &SortConfig{
		Fields: []string{
			"carrier_facilities.count",
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// CarrierFacilitySortConfig defines the default sort configuration for CarrierFacility.
	CarrierFacilitySortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// FacilitySortConfig defines the default sort configuration for Facility.
	FacilitySortConfig = &SortConfig{
		Fields: []string{
			"carrier_facilities.count",
			"id",
			"ix_facilities.count",
			"network_facilities.count",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// InternetExchangeSortConfig defines the default sort configuration for InternetExchange.
	InternetExchangeSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"ix_facilities.count",
			"ix_lans.count",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// IxFacilitySortConfig defines the default sort configuration for IxFacility.
	IxFacilitySortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// IxLanSortConfig defines the default sort configuration for IxLan.
	IxLanSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"ix_prefixes.count",
			"network_ix_lans.count",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// IxPrefixSortConfig defines the default sort configuration for IxPrefix.
	IxPrefixSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// NetworkSortConfig defines the default sort configuration for Network.
	NetworkSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"network_facilities.count",
			"network_ix_lans.count",
			"pocs.count",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// NetworkFacilitySortConfig defines the default sort configuration for NetworkFacility.
	NetworkFacilitySortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// NetworkIxLanSortConfig defines the default sort configuration for NetworkIxLan.
	NetworkIxLanSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// OrganizationSortConfig defines the default sort configuration for Organization.
	OrganizationSortConfig = &SortConfig{
		Fields: []string{
			"campuses.count",
			"carriers.count",
			"facilities.count",
			"id",
			"internet_exchanges.count",
			"networks.count",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
	// PocSortConfig defines the default sort configuration for Poc.
	PocSortConfig = &SortConfig{
		Fields: []string{
			"id",
			"random",
		},
		DefaultField: "id",
		DefaultOrder: "asc",
	}
)
View Source
var ErrEndpointNotFound = errors.New("endpoint not found")
View Source
var ErrMethodNotAllowed = errors.New("method not allowed")
View Source
var (
	// FilterOperations defines the available filter methods.
	FilterOperations = []FilterOperation{FilterOperationAnd, FilterOperationOr}
)
View Source
var OpenAPI []byte // OpenAPI contains the JSON schema of the API.

Functions

func Bind

func Bind(r *http.Request, v any) error

Bind decodes the request body to the given struct. At this time the only supported content-types are application/json, application/x-www-form-urlencoded, as well as GET parameters.

func EagerLoadCampu

func EagerLoadCampu(query *ent.CampusQuery) *ent.CampusQuery

EagerLoadCampu eager-loads the edges of a Campu entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadCarrier

func EagerLoadCarrier(query *ent.CarrierQuery) *ent.CarrierQuery

EagerLoadCarrier eager-loads the edges of a Carrier entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadCarrierFacility

func EagerLoadCarrierFacility(query *ent.CarrierFacilityQuery) *ent.CarrierFacilityQuery

EagerLoadCarrierFacility eager-loads the edges of a CarrierFacility entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadFacility

func EagerLoadFacility(query *ent.FacilityQuery) *ent.FacilityQuery

EagerLoadFacility eager-loads the edges of a Facility entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadInternetExchange

func EagerLoadInternetExchange(query *ent.InternetExchangeQuery) *ent.InternetExchangeQuery

EagerLoadInternetExchange eager-loads the edges of a InternetExchange entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadIxFacility

func EagerLoadIxFacility(query *ent.IxFacilityQuery) *ent.IxFacilityQuery

EagerLoadIxFacility eager-loads the edges of a IxFacility entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadIxLan

func EagerLoadIxLan(query *ent.IxLanQuery) *ent.IxLanQuery

EagerLoadIxLan eager-loads the edges of a IxLan entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadIxPrefix

func EagerLoadIxPrefix(query *ent.IxPrefixQuery) *ent.IxPrefixQuery

EagerLoadIxPrefix eager-loads the edges of a IxPrefix entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadNetwork

func EagerLoadNetwork(query *ent.NetworkQuery) *ent.NetworkQuery

EagerLoadNetwork eager-loads the edges of a Network entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadNetworkFacility

func EagerLoadNetworkFacility(query *ent.NetworkFacilityQuery) *ent.NetworkFacilityQuery

EagerLoadNetworkFacility eager-loads the edges of a NetworkFacility entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadNetworkIxLan

func EagerLoadNetworkIxLan(query *ent.NetworkIxLanQuery) *ent.NetworkIxLanQuery

EagerLoadNetworkIxLan eager-loads the edges of a NetworkIxLan entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadOrganization

func EagerLoadOrganization(query *ent.OrganizationQuery) *ent.OrganizationQuery

EagerLoadOrganization eager-loads the edges of a Organization entity, if any edges were requested to be eager-loaded, based off associated annotations.

func EagerLoadPoc

func EagerLoadPoc(query *ent.PocQuery) *ent.PocQuery

EagerLoadPoc eager-loads the edges of a Poc entity, if any edges were requested to be eager-loaded, based off associated annotations.

func IsBadRequest

func IsBadRequest(err error) bool

IsBadRequest returns true if the unwrapped/underlying error is of type ErrBadRequest.

func IsEndpointNotFound

func IsEndpointNotFound(err error) bool

IsEndpointNotFound returns true if the unwrapped/underlying error is of type ErrEndpointNotFound.

func IsInvalidID

func IsInvalidID(err error) bool

IsInvalidID returns true if the unwrapped/underlying error is of type ErrInvalidID.

func IsMethodNotAllowed

func IsMethodNotAllowed(err error) bool

IsMethodNotAllowed returns true if the unwrapped/underlying error is of type ErrMethodNotAllowed.

func JSON

func JSON(w http.ResponseWriter, r *http.Request, status int, v any)

JSON marshals 'v' to JSON, and setting the Content-Type as application/json. Note that this does NOT auto-escape HTML. If 'v' cannot be marshalled to JSON, this will panic.

JSON also supports prettification when the origin request has a query parameter of "pretty" set to true.

func Req

func Req[Resp any](s *Server, op Operation, fn func(*http.Request) (*Resp, error)) http.HandlerFunc

Req simplifies making an HTTP handler that returns a single result, and an error. The result, if not nil, must be JSON-marshalable. If result is nil, http.StatusNoContent will be returned.

func ReqID

func ReqID[Resp, I any](s *Server, op Operation, fn func(*http.Request, I) (*Resp, error)) http.HandlerFunc

ReqID is similar to Req, but also processes an "id" path parameter and provides it to the handler function.

func ReqIDParam

func ReqIDParam[Params, Resp, I any](s *Server, op Operation, fn func(*http.Request, I, *Params) (*Resp, error)) http.HandlerFunc

ReqIDParam is similar to ReqParam, but also processes an "id" path parameter and request body/query params, and provides it to the handler function.

func ReqParam

func ReqParam[Params, Resp any](s *Server, op Operation, fn func(*http.Request, *Params) (*Resp, error)) http.HandlerFunc

ReqParam is similar to Req, but also processes a request body/query params and provides it to the handler function.

func UseEntContext

func UseEntContext(db *ent.Client) func(next http.Handler) http.Handler

UseEntContext can be used to inject an ent.Client into the context for use by other middleware, or ent privacy layers. Note that the server will do this by default, so you don't need to do this manually, unless it's a context that's not being passed to the server and is being consumed elsewhere.

Types

type CreateCampuParams

type CreateCampuParams struct {
	// FK to organization
	OrgID *int `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName *string `json:"org_name,omitempty"`
	// Campus name
	Name string `json:"name"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Campus website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Country code
	Country *string `json:"country,omitempty"`
	// City
	City *string `json:"city,omitempty"`
	// Postal / ZIP code
	Zipcode *string `json:"zipcode,omitempty"`
	// State or province
	State *string `json:"state,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateCampuParams defines parameters for creating a Campu via a POST request.

func (*CreateCampuParams) ApplyInputs

func (c *CreateCampuParams) ApplyInputs(builder *ent.CampusCreate) *ent.CampusCreate

func (*CreateCampuParams) Exec

func (c *CreateCampuParams) Exec(ctx context.Context, builder *ent.CampusCreate, query *ent.CampusQuery) (*ent.Campus, error)

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateCarrierFacilityParams

type CreateCarrierFacilityParams struct {
	// FK to carrier
	CarrierID *int `json:"carrier_id,omitempty"`
	// FK to facility
	FacID *int `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name *string `json:"name,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateCarrierFacilityParams defines parameters for creating a CarrierFacility via a POST request.

func (*CreateCarrierFacilityParams) ApplyInputs

func (*CreateCarrierFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateCarrierParams

type CreateCarrierParams struct {
	// FK to organization
	OrgID *int `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName *string `json:"org_name,omitempty"`
	// Carrier name
	Name string `json:"name"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// Carrier website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Facility count (computed)
	FacCount *int `json:"fac_count,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateCarrierParams defines parameters for creating a Carrier via a POST request.

func (*CreateCarrierParams) ApplyInputs

func (c *CreateCarrierParams) ApplyInputs(builder *ent.CarrierCreate) *ent.CarrierCreate

func (*CreateCarrierParams) Exec

func (c *CreateCarrierParams) Exec(ctx context.Context, builder *ent.CarrierCreate, query *ent.CarrierQuery) (*ent.Carrier, error)

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateFacilityParams

type CreateFacilityParams struct {
	// FK to organization
	OrgID *int `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName *string `json:"org_name,omitempty"`
	// FK to campus
	CampusID *int `json:"campus_id,omitempty"`
	// Facility name
	Name string `json:"name"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// Facility website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// CLLI code
	Clli *string `json:"clli,omitempty"`
	// Rencode
	Rencode *string `json:"rencode,omitempty"`
	// NPANXX
	Npanxx *string `json:"npanxx,omitempty"`
	// Technical contact email
	TechEmail *string `json:"tech_email,omitempty"`
	// Technical contact phone
	TechPhone *string `json:"tech_phone,omitempty"`
	// Sales contact email
	SalesEmail *string `json:"sales_email,omitempty"`
	// Sales contact phone
	SalesPhone *string `json:"sales_phone,omitempty"`
	// Property type
	Property *string `json:"property,omitempty"`
	// Has diverse serving substations
	DiverseServingSubstations *bool `json:"diverse_serving_substations,omitempty"`
	// Available voltage services
	AvailableVoltageServices []string `json:"available_voltage_services,omitempty"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Region / continent
	RegionContinent *string `json:"region_continent,omitempty"`
	// Status dashboard URL
	StatusDashboard *string `json:"status_dashboard,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// Network count (computed)
	NetCount *int `json:"net_count,omitempty"`
	// Internet exchange count (computed)
	IxCount *int `json:"ix_count,omitempty"`
	// Carrier count (computed)
	CarrierCount *int `json:"carrier_count,omitempty"`
	// Address line 1
	Address1 *string `json:"address1,omitempty"`
	// Address line 2
	Address2 *string `json:"address2,omitempty"`
	// City
	City *string `json:"city,omitempty"`
	// State or province
	State *string `json:"state,omitempty"`
	// Country code
	Country *string `json:"country,omitempty"`
	// Postal / ZIP code
	Zipcode *string `json:"zipcode,omitempty"`
	// Suite number
	Suite *string `json:"suite,omitempty"`
	// Floor
	Floor *string `json:"floor,omitempty"`
	// Latitude
	Latitude *float64 `json:"latitude,omitempty"`
	// Longitude
	Longitude *float64 `json:"longitude,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateFacilityParams defines parameters for creating a Facility via a POST request.

func (*CreateFacilityParams) ApplyInputs

func (c *CreateFacilityParams) ApplyInputs(builder *ent.FacilityCreate) *ent.FacilityCreate

func (*CreateFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateInternetExchangeParams

type CreateInternetExchangeParams struct {
	// FK to organization
	OrgID *int `json:"org_id,omitempty"`
	// Internet exchange name
	Name string `json:"name"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// City
	City *string `json:"city"`
	// Country code
	Country *string `json:"country"`
	// Region / continent
	RegionContinent *string `json:"region_continent"`
	// Media type
	Media *string `json:"media"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Supports unicast
	ProtoUnicast *bool `json:"proto_unicast"`
	// Supports multicast
	ProtoMulticast *bool `json:"proto_multicast"`
	// Supports IPv6
	ProtoIpv6 *bool `json:"proto_ipv6"`
	// Internet exchange website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// Statistics URL
	URLStats *string `json:"url_stats,omitempty"`
	// Technical contact email
	TechEmail *string `json:"tech_email,omitempty"`
	// Technical contact phone
	TechPhone *string `json:"tech_phone,omitempty"`
	// Policy contact email
	PolicyEmail *string `json:"policy_email,omitempty"`
	// Policy contact phone
	PolicyPhone *string `json:"policy_phone,omitempty"`
	// Sales contact email
	SalesEmail *string `json:"sales_email,omitempty"`
	// Sales contact phone
	SalesPhone *string `json:"sales_phone,omitempty"`
	// Network count (computed)
	NetCount *int `json:"net_count,omitempty"`
	// Facility count (computed)
	FacCount *int `json:"fac_count,omitempty"`
	// IXF net count
	IxfNetCount *int `json:"ixf_net_count"`
	// Last IXF import timestamp
	IxfLastImport *time.Time `json:"ixf_last_import,omitempty"`
	// IXF import request
	IxfImportRequest *string `json:"ixf_import_request,omitempty"`
	// IXF import request status
	IxfImportRequestStatus *string `json:"ixf_import_request_status,omitempty"`
	// Service level
	ServiceLevel *string `json:"service_level,omitempty"`
	// Terms
	Terms *string `json:"terms,omitempty"`
	// Status dashboard URL
	StatusDashboard *string `json:"status_dashboard,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateInternetExchangeParams defines parameters for creating a InternetExchange via a POST request.

func (*CreateInternetExchangeParams) ApplyInputs

func (*CreateInternetExchangeParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateIxFacilityParams

type CreateIxFacilityParams struct {
	// FK to internet exchange
	IxID *int `json:"ix_id,omitempty"`
	// FK to facility
	FacID *int `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name *string `json:"name,omitempty"`
	// City (computed)
	City *string `json:"city,omitempty"`
	// Country (computed)
	Country *string `json:"country,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateIxFacilityParams defines parameters for creating a IxFacility via a POST request.

func (*CreateIxFacilityParams) ApplyInputs

func (*CreateIxFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateIxLanParams

type CreateIxLanParams struct {
	// FK to internet exchange
	IxID *int `json:"ix_id,omitempty"`
	// IXLan name
	Name *string `json:"name,omitempty"`
	// Description
	Descr *string `json:"descr,omitempty"`
	// MTU
	Mtu *int `json:"mtu"`
	// 802.1Q support
	Dot1qSupport *bool `json:"dot1q_support"`
	// Route server ASN
	RsAsn *int `json:"rs_asn,omitempty"`
	// ARP sponge MAC address
	ArpSponge *string `json:"arp_sponge,omitempty"`
	// IXF member list URL visibility
	IxfIxpMemberListURLVisible *string `json:"ixf_ixp_member_list_url_visible"`
	// IXF import enabled
	IxfIxpImportEnabled *bool `json:"ixf_ixp_import_enabled"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateIxLanParams defines parameters for creating a IxLan via a POST request.

func (*CreateIxLanParams) ApplyInputs

func (c *CreateIxLanParams) ApplyInputs(builder *ent.IxLanCreate) *ent.IxLanCreate

func (*CreateIxLanParams) Exec

func (c *CreateIxLanParams) Exec(ctx context.Context, builder *ent.IxLanCreate, query *ent.IxLanQuery) (*ent.IxLan, error)

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateIxPrefixParams

type CreateIxPrefixParams struct {
	// FK to IXLan
	IxlanID *int `json:"ixlan_id,omitempty"`
	// Protocol (IPv4 or IPv6)
	Protocol string `json:"protocol"`
	// IP prefix
	Prefix string `json:"prefix"`
	// In default-free zone
	InDfz *bool `json:"in_dfz"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateIxPrefixParams defines parameters for creating a IxPrefix via a POST request.

func (*CreateIxPrefixParams) ApplyInputs

func (c *CreateIxPrefixParams) ApplyInputs(builder *ent.IxPrefixCreate) *ent.IxPrefixCreate

func (*CreateIxPrefixParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateNetworkFacilityParams

type CreateNetworkFacilityParams struct {
	// FK to network
	NetID *int `json:"net_id,omitempty"`
	// FK to facility
	FacID *int `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name *string `json:"name,omitempty"`
	// City (computed)
	City *string `json:"city,omitempty"`
	// Country (computed)
	Country *string `json:"country,omitempty"`
	// Local ASN at this facility
	LocalAsn int `json:"local_asn"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateNetworkFacilityParams defines parameters for creating a NetworkFacility via a POST request.

func (*CreateNetworkFacilityParams) ApplyInputs

func (*CreateNetworkFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateNetworkIxLanParams

type CreateNetworkIxLanParams struct {
	// FK to network
	NetID *int `json:"net_id,omitempty"`
	// Internet exchange ID (computed, not an edge)
	IxID *int `json:"ix_id,omitempty"`
	// FK to IXLan
	IxlanID *int `json:"ixlan_id,omitempty"`
	// Exchange name (computed)
	Name *string `json:"name,omitempty"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Port speed in Mbps
	Speed int `json:"speed"`
	// Autonomous System Number
	Asn int `json:"asn"`
	// IPv4 address
	Ipaddr4 *string `json:"ipaddr4,omitempty"`
	// IPv6 address
	Ipaddr6 *string `json:"ipaddr6,omitempty"`
	// Is route server peer
	IsRsPeer *bool `json:"is_rs_peer"`
	// BFD support
	BfdSupport *bool `json:"bfd_support"`
	// Operational status
	Operational *bool `json:"operational"`
	// Network-side facility ID
	NetSideID *int `json:"net_side_id,omitempty"`
	// IX-side facility ID
	IxSideID *int `json:"ix_side_id,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateNetworkIxLanParams defines parameters for creating a NetworkIxLan via a POST request.

func (*CreateNetworkIxLanParams) ApplyInputs

func (*CreateNetworkIxLanParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateNetworkParams

type CreateNetworkParams struct {
	// FK to organization
	OrgID *int `json:"org_id,omitempty"`
	// Network name
	Name string `json:"name"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// Network website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// Autonomous System Number
	Asn int `json:"asn"`
	// Looking glass URL
	LookingGlass *string `json:"looking_glass,omitempty"`
	// Route server URL
	RouteServer *string `json:"route_server,omitempty"`
	// IRR AS-SET
	IrrAsSet *string `json:"irr_as_set,omitempty"`
	// Network type
	InfoType *string `json:"info_type,omitempty"`
	// Network types (multi-choice)
	InfoTypes []string `json:"info_types,omitempty"`
	// IPv4 prefix count
	InfoPrefixes4 *int `json:"info_prefixes4,omitempty"`
	// IPv6 prefix count
	InfoPrefixes6 *int `json:"info_prefixes6,omitempty"`
	// Traffic level
	InfoTraffic *string `json:"info_traffic,omitempty"`
	// Traffic ratio
	InfoRatio *string `json:"info_ratio,omitempty"`
	// Geographic scope
	InfoScope *string `json:"info_scope,omitempty"`
	// Supports unicast
	InfoUnicast *bool `json:"info_unicast"`
	// Supports multicast
	InfoMulticast *bool `json:"info_multicast"`
	// Supports IPv6
	InfoIpv6 *bool `json:"info_ipv6"`
	// Never via route servers
	InfoNeverViaRouteServers *bool `json:"info_never_via_route_servers"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	// Peering policy URL
	PolicyURL *string `json:"policy_url,omitempty"`
	// General peering policy
	PolicyGeneral *string `json:"policy_general,omitempty"`
	// Peering policy locations
	PolicyLocations *string `json:"policy_locations,omitempty"`
	// Peering policy ratio requirement
	PolicyRatio *bool `json:"policy_ratio"`
	// Peering policy contracts
	PolicyContracts *string `json:"policy_contracts,omitempty"`
	// Allow IXP update
	AllowIxpUpdate *bool `json:"allow_ixp_update"`
	// Status dashboard URL
	StatusDashboard *string `json:"status_dashboard,omitempty"`
	// RIR status
	RirStatus *string `json:"rir_status,omitempty"`
	// RIR status last updated
	RirStatusUpdated *time.Time `json:"rir_status_updated,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// Internet exchange count (computed)
	IxCount *int `json:"ix_count,omitempty"`
	// Facility count (computed)
	FacCount *int `json:"fac_count,omitempty"`
	// Last netixlan update (computed)
	NetixlanUpdated *time.Time `json:"netixlan_updated,omitempty"`
	// Last netfac update (computed)
	NetfacUpdated *time.Time `json:"netfac_updated,omitempty"`
	// Last POC update (computed)
	PocUpdated *time.Time `json:"poc_updated,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateNetworkParams defines parameters for creating a Network via a POST request.

func (*CreateNetworkParams) ApplyInputs

func (c *CreateNetworkParams) ApplyInputs(builder *ent.NetworkCreate) *ent.NetworkCreate

func (*CreateNetworkParams) Exec

func (c *CreateNetworkParams) Exec(ctx context.Context, builder *ent.NetworkCreate, query *ent.NetworkQuery) (*ent.Network, error)

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreateOrganizationParams

type CreateOrganizationParams struct {
	// Organization name
	Name string `json:"name"`
	// Also known as
	Aka *string `json:"aka,omitempty"`
	// Long name
	NameLong *string `json:"name_long,omitempty"`
	// Organization website URL
	Website *string `json:"website,omitempty"`
	// Social media links
	SocialMedia []schema.SocialMedia `json:"social_media,omitempty"`
	// Notes
	Notes *string `json:"notes,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// Address line 1
	Address1 *string `json:"address1,omitempty"`
	// Address line 2
	Address2 *string `json:"address2,omitempty"`
	// City
	City *string `json:"city,omitempty"`
	// State or province
	State *string `json:"state,omitempty"`
	// Country code
	Country *string `json:"country,omitempty"`
	// Postal / ZIP code
	Zipcode *string `json:"zipcode,omitempty"`
	// Suite number
	Suite *string `json:"suite,omitempty"`
	// Floor
	Floor *string `json:"floor,omitempty"`
	// Latitude
	Latitude *float64 `json:"latitude,omitempty"`
	// Longitude
	Longitude *float64 `json:"longitude,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreateOrganizationParams defines parameters for creating a Organization via a POST request.

func (*CreateOrganizationParams) ApplyInputs

func (*CreateOrganizationParams) Exec

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type CreatePocParams

type CreatePocParams struct {
	// FK to network
	NetID *int `json:"net_id,omitempty"`
	// Contact role
	Role string `json:"role"`
	// Visibility level
	Visible *string `json:"visible"`
	// Contact name
	Name *string `json:"name,omitempty"`
	// Contact phone
	Phone *string `json:"phone,omitempty"`
	// Contact email
	Email *string `json:"email,omitempty"`
	// Contact URL
	URL *string `json:"url,omitempty"`
	// PeeringDB creation timestamp
	Created time.Time `json:"created"`
	// PeeringDB last update timestamp
	Updated time.Time `json:"updated"`
	// Record status
	Status *string `json:"status"`
}

CreatePocParams defines parameters for creating a Poc via a POST request.

func (*CreatePocParams) ApplyInputs

func (c *CreatePocParams) ApplyInputs(builder *ent.PocCreate) *ent.PocCreate

func (*CreatePocParams) Exec

func (c *CreatePocParams) Exec(ctx context.Context, builder *ent.PocCreate, query *ent.PocQuery) (*ent.Poc, error)

Exec wraps all logic (mapping all provided values to the builder), creates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type ErrBadRequest

type ErrBadRequest struct {
	Err error
}

func (ErrBadRequest) Error

func (e ErrBadRequest) Error() string

func (ErrBadRequest) Unwrap

func (e ErrBadRequest) Unwrap() error

type ErrInvalidID

type ErrInvalidID struct {
	ID  string
	Err error
}

func (ErrInvalidID) Error

func (e ErrInvalidID) Error() string

func (ErrInvalidID) Unwrap

func (e ErrInvalidID) Unwrap() error

type ErrorResponse

type ErrorResponse struct {
	Error     string `json:"error"`                // The underlying error, which may be masked when debugging is disabled.
	Type      string `json:"type"`                 // A summary of the error code based off the HTTP status code or application error code.
	Code      int    `json:"code"`                 // The HTTP status code or other internal application error code.
	RequestID string `json:"request_id,omitempty"` // The unique request ID for this error.
	Timestamp string `json:"timestamp,omitempty"`  // The timestamp of the error, in RFC3339 format.
}

ErrorResponse is the response structure for errors.

type FilterOperation

type FilterOperation string

FilterOperation represents if all or any (one or more) filters should be applied.

const (
	FilterOperationAnd FilterOperation = "and" // Represents the "and" predicate, applying against all filters combined.
	FilterOperationOr  FilterOperation = "or"  // Represents the "or" predicate, applying against any number of filters.
)

type Filtered

type Filtered[P ~func(*sql.Selector)] struct {
	// FilterOperation controls how multiple predicates are applied together.
	FilterOperation *FilterOperation `json:"filter_op,omitempty" form:"filter_op,omitempty"`
}

func (*Filtered[P]) ApplyFilterOperation

func (f *Filtered[P]) ApplyFilterOperation(predicates ...P) (P, error)

ApplyFilterOperation applies the requested filter operation (if provided) to the provided predicates. If no filter operation is provided, the predicates are returned with AND.

type Links map[string]string

Links represents a set of linkable-relationsips that can be represented through the "Link" header. Note that all urls must be url-encoded already.

func (Links) String

func (l Links) String() string

type ListCampuParams

type ListCampuParams struct {
	Sorted
	Paginated[*ent.CampusQuery, ent.Campus]
	Filtered[predicate.Campus]

	// Filters field "org_id" to be equal to the provided value.
	CampusOrgIDEQ *int `form:"orgID.eq,omitempty" json:"campus_org_ideq,omitempty"`
	// Filters field "org_id" to be not equal to the provided value.
	CampusOrgIDNEQ *int `form:"orgID.neq,omitempty" json:"campus_org_idneq,omitempty"`
	// Filters field "org_id" to be within the provided values.
	CampusOrgIDIn []int `form:"orgID.in,omitempty" json:"campus_org_id_in,omitempty"`
	// Filters field "org_id" to be not within the provided values.
	CampusOrgIDNotIn []int `form:"orgID.notIn,omitempty" json:"campus_org_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	CampusNameEQ *string `form:"name.eq,omitempty" json:"campus_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	CampusNameNEQ *string `form:"name.neq,omitempty" json:"campus_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	CampusNameIn []string `form:"name.in,omitempty" json:"campus_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	CampusNameNotIn []string `form:"name.notIn,omitempty" json:"campus_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	CampusNameEqualFold *string `form:"name.ieq,omitempty" json:"campus_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	CampusNameContains *string `form:"name.has,omitempty" json:"campus_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	CampusNameContainsFold *string `form:"name.ihas,omitempty" json:"campus_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	CampusNameHasPrefix *string `form:"name.prefix,omitempty" json:"campus_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	CampusNameHasSuffix *string `form:"name.suffix,omitempty" json:"campus_name_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	CampusNameLongEQ *string `form:"nameLong.eq,omitempty" json:"campus_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	CampusNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"campus_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	CampusNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"campus_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	CampusNameLongIn []string `form:"nameLong.in,omitempty" json:"campus_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	CampusNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"campus_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	CampusNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"campus_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	CampusNameLongContains *string `form:"nameLong.has,omitempty" json:"campus_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	CampusNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"campus_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	CampusNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"campus_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	CampusNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"campus_name_long_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	CampusAkaEQ *string `form:"aka.eq,omitempty" json:"campus_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	CampusAkaNEQ *string `form:"aka.neq,omitempty" json:"campus_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	CampusAkaIsNil *bool `form:"aka.null,omitempty" json:"campus_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	CampusAkaIn []string `form:"aka.in,omitempty" json:"campus_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	CampusAkaNotIn []string `form:"aka.notIn,omitempty" json:"campus_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	CampusAkaEqualFold *string `form:"aka.ieq,omitempty" json:"campus_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	CampusAkaContains *string `form:"aka.has,omitempty" json:"campus_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	CampusAkaContainsFold *string `form:"aka.ihas,omitempty" json:"campus_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	CampusAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"campus_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	CampusAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"campus_aka_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	CampusCountryEQ *string `form:"country.eq,omitempty" json:"campus_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	CampusCountryNEQ *string `form:"country.neq,omitempty" json:"campus_country_neq,omitempty"`
	// Filters field "country" to be null/nil.
	CampusCountryIsNil *bool `form:"country.null,omitempty" json:"campus_country_is_nil,omitempty"`
	// Filters field "country" to be within the provided values.
	CampusCountryIn []string `form:"country.in,omitempty" json:"campus_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	CampusCountryNotIn []string `form:"country.notIn,omitempty" json:"campus_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	CampusCountryEqualFold *string `form:"country.ieq,omitempty" json:"campus_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	CampusCountryContains *string `form:"country.has,omitempty" json:"campus_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	CampusCountryContainsFold *string `form:"country.ihas,omitempty" json:"campus_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	CampusCountryHasPrefix *string `form:"country.prefix,omitempty" json:"campus_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	CampusCountryHasSuffix *string `form:"country.suffix,omitempty" json:"campus_country_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	CampusCityEQ *string `form:"city.eq,omitempty" json:"campus_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	CampusCityNEQ *string `form:"city.neq,omitempty" json:"campus_city_neq,omitempty"`
	// Filters field "city" to be null/nil.
	CampusCityIsNil *bool `form:"city.null,omitempty" json:"campus_city_is_nil,omitempty"`
	// Filters field "city" to be within the provided values.
	CampusCityIn []string `form:"city.in,omitempty" json:"campus_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	CampusCityNotIn []string `form:"city.notIn,omitempty" json:"campus_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	CampusCityEqualFold *string `form:"city.ieq,omitempty" json:"campus_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	CampusCityContains *string `form:"city.has,omitempty" json:"campus_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	CampusCityContainsFold *string `form:"city.ihas,omitempty" json:"campus_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	CampusCityHasPrefix *string `form:"city.prefix,omitempty" json:"campus_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	CampusCityHasSuffix *string `form:"city.suffix,omitempty" json:"campus_city_has_suffix,omitempty"`
	// Filters field "state" to be equal to the provided value.
	CampusStateEQ *string `form:"state.eq,omitempty" json:"campus_state_eq,omitempty"`
	// Filters field "state" to be not equal to the provided value.
	CampusStateNEQ *string `form:"state.neq,omitempty" json:"campus_state_neq,omitempty"`
	// Filters field "state" to be null/nil.
	CampusStateIsNil *bool `form:"state.null,omitempty" json:"campus_state_is_nil,omitempty"`
	// Filters field "state" to be within the provided values.
	CampusStateIn []string `form:"state.in,omitempty" json:"campus_state_in,omitempty"`
	// Filters field "state" to be not within the provided values.
	CampusStateNotIn []string `form:"state.notIn,omitempty" json:"campus_state_not_in,omitempty"`
	// Filters field "state" to be equal to the provided value, case-insensitive.
	CampusStateEqualFold *string `form:"state.ieq,omitempty" json:"campus_state_equal_fold,omitempty"`
	// Filters field "state" to contain the provided value.
	CampusStateContains *string `form:"state.has,omitempty" json:"campus_state_contains,omitempty"`
	// Filters field "state" to contain the provided value, case-insensitive.
	CampusStateContainsFold *string `form:"state.ihas,omitempty" json:"campus_state_contains_fold,omitempty"`
	// Filters field "state" to start with the provided value.
	CampusStateHasPrefix *string `form:"state.prefix,omitempty" json:"campus_state_has_prefix,omitempty"`
	// Filters field "state" to end with the provided value.
	CampusStateHasSuffix *string `form:"state.suffix,omitempty" json:"campus_state_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	CampusCreatedGT *time.Time `form:"created.gt,omitempty" json:"campus_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	CampusCreatedGTE *time.Time `form:"created.gte,omitempty" json:"campus_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	CampusCreatedLT *time.Time `form:"created.lt,omitempty" json:"campus_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	CampusCreatedLTE *time.Time `form:"created.lte,omitempty" json:"campus_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	CampusUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"campus_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	CampusUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"campus_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	CampusUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"campus_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	CampusUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"campus_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	CampusStatusEQ *string `form:"status.eq,omitempty" json:"campus_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	CampusStatusNEQ *string `form:"status.neq,omitempty" json:"campus_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	CampusStatusIn []string `form:"status.in,omitempty" json:"campus_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	CampusStatusNotIn []string `form:"status.notIn,omitempty" json:"campus_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	CampusStatusEqualFold *string `form:"status.ieq,omitempty" json:"campus_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	CampusStatusContains *string `form:"status.has,omitempty" json:"campus_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	CampusStatusContainsFold *string `form:"status.ihas,omitempty" json:"campus_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	CampusStatusHasPrefix *string `form:"status.prefix,omitempty" json:"campus_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	CampusStatusHasSuffix *string `form:"status.suffix,omitempty" json:"campus_status_has_suffix,omitempty"`
}

ListCampuParams defines parameters for listing Campus via a GET request.

func (*ListCampuParams) ApplySorting

func (l *ListCampuParams) ApplySorting(query *ent.CampusQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListCampuParams) Exec

func (l *ListCampuParams) Exec(ctx context.Context, query *ent.CampusQuery) (results *PagedResponse[ent.Campus], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListCampuParams) FilterPredicates

func (l *ListCampuParams) FilterPredicates() (predicate.Campus, error)

FilterPredicates returns the predicates for filter-related parameters in Campu.

type ListCarrierFacilityParams

type ListCarrierFacilityParams struct {
	Sorted
	Paginated[*ent.CarrierFacilityQuery, ent.CarrierFacility]
	Filtered[predicate.CarrierFacility]

	// Filters field "carrier_id" to be equal to the provided value.
	CarrierFacilityCarrierIDEQ *int `form:"carrierID.eq,omitempty" json:"carrier_facility_carrier_ideq,omitempty"`
	// Filters field "carrier_id" to be not equal to the provided value.
	CarrierFacilityCarrierIDNEQ *int `form:"carrierID.neq,omitempty" json:"carrier_facility_carrier_idneq,omitempty"`
	// Filters field "carrier_id" to be within the provided values.
	CarrierFacilityCarrierIDIn []int `form:"carrierID.in,omitempty" json:"carrier_facility_carrier_id_in,omitempty"`
	// Filters field "carrier_id" to be not within the provided values.
	CarrierFacilityCarrierIDNotIn []int `form:"carrierID.notIn,omitempty" json:"carrier_facility_carrier_id_not_in,omitempty"`
	// Filters field "fac_id" to be equal to the provided value.
	CarrierFacilityFacIDEQ *int `form:"facID.eq,omitempty" json:"carrier_facility_fac_ideq,omitempty"`
	// Filters field "fac_id" to be not equal to the provided value.
	CarrierFacilityFacIDNEQ *int `form:"facID.neq,omitempty" json:"carrier_facility_fac_idneq,omitempty"`
	// Filters field "fac_id" to be within the provided values.
	CarrierFacilityFacIDIn []int `form:"facID.in,omitempty" json:"carrier_facility_fac_id_in,omitempty"`
	// Filters field "fac_id" to be not within the provided values.
	CarrierFacilityFacIDNotIn []int `form:"facID.notIn,omitempty" json:"carrier_facility_fac_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	CarrierFacilityNameEQ *string `form:"name.eq,omitempty" json:"carrier_facility_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	CarrierFacilityNameNEQ *string `form:"name.neq,omitempty" json:"carrier_facility_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	CarrierFacilityNameIsNil *bool `form:"name.null,omitempty" json:"carrier_facility_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	CarrierFacilityNameIn []string `form:"name.in,omitempty" json:"carrier_facility_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	CarrierFacilityNameNotIn []string `form:"name.notIn,omitempty" json:"carrier_facility_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	CarrierFacilityNameEqualFold *string `form:"name.ieq,omitempty" json:"carrier_facility_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	CarrierFacilityNameContains *string `form:"name.has,omitempty" json:"carrier_facility_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	CarrierFacilityNameContainsFold *string `form:"name.ihas,omitempty" json:"carrier_facility_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	CarrierFacilityNameHasPrefix *string `form:"name.prefix,omitempty" json:"carrier_facility_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	CarrierFacilityNameHasSuffix *string `form:"name.suffix,omitempty" json:"carrier_facility_name_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	CarrierFacilityCreatedGT *time.Time `form:"created.gt,omitempty" json:"carrier_facility_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	CarrierFacilityCreatedGTE *time.Time `form:"created.gte,omitempty" json:"carrier_facility_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	CarrierFacilityCreatedLT *time.Time `form:"created.lt,omitempty" json:"carrier_facility_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	CarrierFacilityCreatedLTE *time.Time `form:"created.lte,omitempty" json:"carrier_facility_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	CarrierFacilityUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"carrier_facility_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	CarrierFacilityUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"carrier_facility_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	CarrierFacilityUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"carrier_facility_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	CarrierFacilityUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"carrier_facility_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	CarrierFacilityStatusEQ *string `form:"status.eq,omitempty" json:"carrier_facility_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	CarrierFacilityStatusNEQ *string `form:"status.neq,omitempty" json:"carrier_facility_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	CarrierFacilityStatusIn []string `form:"status.in,omitempty" json:"carrier_facility_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	CarrierFacilityStatusNotIn []string `form:"status.notIn,omitempty" json:"carrier_facility_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	CarrierFacilityStatusEqualFold *string `form:"status.ieq,omitempty" json:"carrier_facility_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	CarrierFacilityStatusContains *string `form:"status.has,omitempty" json:"carrier_facility_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	CarrierFacilityStatusContainsFold *string `form:"status.ihas,omitempty" json:"carrier_facility_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	CarrierFacilityStatusHasPrefix *string `form:"status.prefix,omitempty" json:"carrier_facility_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	CarrierFacilityStatusHasSuffix *string `form:"status.suffix,omitempty" json:"carrier_facility_status_has_suffix,omitempty"`
}

ListCarrierFacilityParams defines parameters for listing CarrierFacilities via a GET request.

func (*ListCarrierFacilityParams) ApplySorting

func (l *ListCarrierFacilityParams) ApplySorting(query *ent.CarrierFacilityQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListCarrierFacilityParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListCarrierFacilityParams) FilterPredicates

func (l *ListCarrierFacilityParams) FilterPredicates() (predicate.CarrierFacility, error)

FilterPredicates returns the predicates for filter-related parameters in CarrierFacility.

type ListCarrierParams

type ListCarrierParams struct {
	Sorted
	Paginated[*ent.CarrierQuery, ent.Carrier]
	Filtered[predicate.Carrier]

	// Filters field "org_id" to be equal to the provided value.
	CarrierOrgIDEQ *int `form:"orgID.eq,omitempty" json:"carrier_org_ideq,omitempty"`
	// Filters field "org_id" to be not equal to the provided value.
	CarrierOrgIDNEQ *int `form:"orgID.neq,omitempty" json:"carrier_org_idneq,omitempty"`
	// Filters field "org_id" to be within the provided values.
	CarrierOrgIDIn []int `form:"orgID.in,omitempty" json:"carrier_org_id_in,omitempty"`
	// Filters field "org_id" to be not within the provided values.
	CarrierOrgIDNotIn []int `form:"orgID.notIn,omitempty" json:"carrier_org_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	CarrierNameEQ *string `form:"name.eq,omitempty" json:"carrier_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	CarrierNameNEQ *string `form:"name.neq,omitempty" json:"carrier_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	CarrierNameIn []string `form:"name.in,omitempty" json:"carrier_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	CarrierNameNotIn []string `form:"name.notIn,omitempty" json:"carrier_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	CarrierNameEqualFold *string `form:"name.ieq,omitempty" json:"carrier_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	CarrierNameContains *string `form:"name.has,omitempty" json:"carrier_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	CarrierNameContainsFold *string `form:"name.ihas,omitempty" json:"carrier_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	CarrierNameHasPrefix *string `form:"name.prefix,omitempty" json:"carrier_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	CarrierNameHasSuffix *string `form:"name.suffix,omitempty" json:"carrier_name_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	CarrierAkaEQ *string `form:"aka.eq,omitempty" json:"carrier_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	CarrierAkaNEQ *string `form:"aka.neq,omitempty" json:"carrier_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	CarrierAkaIsNil *bool `form:"aka.null,omitempty" json:"carrier_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	CarrierAkaIn []string `form:"aka.in,omitempty" json:"carrier_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	CarrierAkaNotIn []string `form:"aka.notIn,omitempty" json:"carrier_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	CarrierAkaEqualFold *string `form:"aka.ieq,omitempty" json:"carrier_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	CarrierAkaContains *string `form:"aka.has,omitempty" json:"carrier_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	CarrierAkaContainsFold *string `form:"aka.ihas,omitempty" json:"carrier_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	CarrierAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"carrier_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	CarrierAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"carrier_aka_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	CarrierNameLongEQ *string `form:"nameLong.eq,omitempty" json:"carrier_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	CarrierNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"carrier_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	CarrierNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"carrier_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	CarrierNameLongIn []string `form:"nameLong.in,omitempty" json:"carrier_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	CarrierNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"carrier_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	CarrierNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"carrier_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	CarrierNameLongContains *string `form:"nameLong.has,omitempty" json:"carrier_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	CarrierNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"carrier_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	CarrierNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"carrier_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	CarrierNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"carrier_name_long_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	CarrierCreatedGT *time.Time `form:"created.gt,omitempty" json:"carrier_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	CarrierCreatedGTE *time.Time `form:"created.gte,omitempty" json:"carrier_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	CarrierCreatedLT *time.Time `form:"created.lt,omitempty" json:"carrier_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	CarrierCreatedLTE *time.Time `form:"created.lte,omitempty" json:"carrier_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	CarrierUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"carrier_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	CarrierUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"carrier_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	CarrierUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"carrier_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	CarrierUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"carrier_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	CarrierStatusEQ *string `form:"status.eq,omitempty" json:"carrier_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	CarrierStatusNEQ *string `form:"status.neq,omitempty" json:"carrier_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	CarrierStatusIn []string `form:"status.in,omitempty" json:"carrier_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	CarrierStatusNotIn []string `form:"status.notIn,omitempty" json:"carrier_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	CarrierStatusEqualFold *string `form:"status.ieq,omitempty" json:"carrier_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	CarrierStatusContains *string `form:"status.has,omitempty" json:"carrier_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	CarrierStatusContainsFold *string `form:"status.ihas,omitempty" json:"carrier_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	CarrierStatusHasPrefix *string `form:"status.prefix,omitempty" json:"carrier_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	CarrierStatusHasSuffix *string `form:"status.suffix,omitempty" json:"carrier_status_has_suffix,omitempty"`
}

ListCarrierParams defines parameters for listing Carriers via a GET request.

func (*ListCarrierParams) ApplySorting

func (l *ListCarrierParams) ApplySorting(query *ent.CarrierQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListCarrierParams) Exec

func (l *ListCarrierParams) Exec(ctx context.Context, query *ent.CarrierQuery) (results *PagedResponse[ent.Carrier], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListCarrierParams) FilterPredicates

func (l *ListCarrierParams) FilterPredicates() (predicate.Carrier, error)

FilterPredicates returns the predicates for filter-related parameters in Carrier.

type ListFacilityParams

type ListFacilityParams struct {
	Sorted
	Paginated[*ent.FacilityQuery, ent.Facility]
	Filtered[predicate.Facility]

	// Filters field "org_id" to be equal to the provided value.
	FacilityOrgIDEQ *int `form:"orgID.eq,omitempty" json:"facility_org_ideq,omitempty"`
	// Filters field "org_id" to be not equal to the provided value.
	FacilityOrgIDNEQ *int `form:"orgID.neq,omitempty" json:"facility_org_idneq,omitempty"`
	// Filters field "org_id" to be within the provided values.
	FacilityOrgIDIn []int `form:"orgID.in,omitempty" json:"facility_org_id_in,omitempty"`
	// Filters field "org_id" to be not within the provided values.
	FacilityOrgIDNotIn []int `form:"orgID.notIn,omitempty" json:"facility_org_id_not_in,omitempty"`
	// Filters field "campus_id" to be equal to the provided value.
	FacilityCampusIDEQ *int `form:"campusID.eq,omitempty" json:"facility_campus_ideq,omitempty"`
	// Filters field "campus_id" to be not equal to the provided value.
	FacilityCampusIDNEQ *int `form:"campusID.neq,omitempty" json:"facility_campus_idneq,omitempty"`
	// Filters field "campus_id" to be within the provided values.
	FacilityCampusIDIn []int `form:"campusID.in,omitempty" json:"facility_campus_id_in,omitempty"`
	// Filters field "campus_id" to be not within the provided values.
	FacilityCampusIDNotIn []int `form:"campusID.notIn,omitempty" json:"facility_campus_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	FacilityNameEQ *string `form:"name.eq,omitempty" json:"facility_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	FacilityNameNEQ *string `form:"name.neq,omitempty" json:"facility_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	FacilityNameIn []string `form:"name.in,omitempty" json:"facility_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	FacilityNameNotIn []string `form:"name.notIn,omitempty" json:"facility_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	FacilityNameEqualFold *string `form:"name.ieq,omitempty" json:"facility_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	FacilityNameContains *string `form:"name.has,omitempty" json:"facility_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	FacilityNameContainsFold *string `form:"name.ihas,omitempty" json:"facility_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	FacilityNameHasPrefix *string `form:"name.prefix,omitempty" json:"facility_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	FacilityNameHasSuffix *string `form:"name.suffix,omitempty" json:"facility_name_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	FacilityAkaEQ *string `form:"aka.eq,omitempty" json:"facility_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	FacilityAkaNEQ *string `form:"aka.neq,omitempty" json:"facility_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	FacilityAkaIsNil *bool `form:"aka.null,omitempty" json:"facility_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	FacilityAkaIn []string `form:"aka.in,omitempty" json:"facility_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	FacilityAkaNotIn []string `form:"aka.notIn,omitempty" json:"facility_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	FacilityAkaEqualFold *string `form:"aka.ieq,omitempty" json:"facility_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	FacilityAkaContains *string `form:"aka.has,omitempty" json:"facility_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	FacilityAkaContainsFold *string `form:"aka.ihas,omitempty" json:"facility_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	FacilityAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"facility_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	FacilityAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"facility_aka_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	FacilityNameLongEQ *string `form:"nameLong.eq,omitempty" json:"facility_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	FacilityNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"facility_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	FacilityNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"facility_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	FacilityNameLongIn []string `form:"nameLong.in,omitempty" json:"facility_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	FacilityNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"facility_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	FacilityNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"facility_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	FacilityNameLongContains *string `form:"nameLong.has,omitempty" json:"facility_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	FacilityNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"facility_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	FacilityNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"facility_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	FacilityNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"facility_name_long_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	FacilityCityEQ *string `form:"city.eq,omitempty" json:"facility_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	FacilityCityNEQ *string `form:"city.neq,omitempty" json:"facility_city_neq,omitempty"`
	// Filters field "city" to be null/nil.
	FacilityCityIsNil *bool `form:"city.null,omitempty" json:"facility_city_is_nil,omitempty"`
	// Filters field "city" to be within the provided values.
	FacilityCityIn []string `form:"city.in,omitempty" json:"facility_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	FacilityCityNotIn []string `form:"city.notIn,omitempty" json:"facility_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	FacilityCityEqualFold *string `form:"city.ieq,omitempty" json:"facility_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	FacilityCityContains *string `form:"city.has,omitempty" json:"facility_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	FacilityCityContainsFold *string `form:"city.ihas,omitempty" json:"facility_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	FacilityCityHasPrefix *string `form:"city.prefix,omitempty" json:"facility_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	FacilityCityHasSuffix *string `form:"city.suffix,omitempty" json:"facility_city_has_suffix,omitempty"`
	// Filters field "state" to be equal to the provided value.
	FacilityStateEQ *string `form:"state.eq,omitempty" json:"facility_state_eq,omitempty"`
	// Filters field "state" to be not equal to the provided value.
	FacilityStateNEQ *string `form:"state.neq,omitempty" json:"facility_state_neq,omitempty"`
	// Filters field "state" to be null/nil.
	FacilityStateIsNil *bool `form:"state.null,omitempty" json:"facility_state_is_nil,omitempty"`
	// Filters field "state" to be within the provided values.
	FacilityStateIn []string `form:"state.in,omitempty" json:"facility_state_in,omitempty"`
	// Filters field "state" to be not within the provided values.
	FacilityStateNotIn []string `form:"state.notIn,omitempty" json:"facility_state_not_in,omitempty"`
	// Filters field "state" to be equal to the provided value, case-insensitive.
	FacilityStateEqualFold *string `form:"state.ieq,omitempty" json:"facility_state_equal_fold,omitempty"`
	// Filters field "state" to contain the provided value.
	FacilityStateContains *string `form:"state.has,omitempty" json:"facility_state_contains,omitempty"`
	// Filters field "state" to contain the provided value, case-insensitive.
	FacilityStateContainsFold *string `form:"state.ihas,omitempty" json:"facility_state_contains_fold,omitempty"`
	// Filters field "state" to start with the provided value.
	FacilityStateHasPrefix *string `form:"state.prefix,omitempty" json:"facility_state_has_prefix,omitempty"`
	// Filters field "state" to end with the provided value.
	FacilityStateHasSuffix *string `form:"state.suffix,omitempty" json:"facility_state_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	FacilityCountryEQ *string `form:"country.eq,omitempty" json:"facility_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	FacilityCountryNEQ *string `form:"country.neq,omitempty" json:"facility_country_neq,omitempty"`
	// Filters field "country" to be null/nil.
	FacilityCountryIsNil *bool `form:"country.null,omitempty" json:"facility_country_is_nil,omitempty"`
	// Filters field "country" to be within the provided values.
	FacilityCountryIn []string `form:"country.in,omitempty" json:"facility_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	FacilityCountryNotIn []string `form:"country.notIn,omitempty" json:"facility_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	FacilityCountryEqualFold *string `form:"country.ieq,omitempty" json:"facility_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	FacilityCountryContains *string `form:"country.has,omitempty" json:"facility_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	FacilityCountryContainsFold *string `form:"country.ihas,omitempty" json:"facility_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	FacilityCountryHasPrefix *string `form:"country.prefix,omitempty" json:"facility_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	FacilityCountryHasSuffix *string `form:"country.suffix,omitempty" json:"facility_country_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	FacilityCreatedGT *time.Time `form:"created.gt,omitempty" json:"facility_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	FacilityCreatedGTE *time.Time `form:"created.gte,omitempty" json:"facility_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	FacilityCreatedLT *time.Time `form:"created.lt,omitempty" json:"facility_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	FacilityCreatedLTE *time.Time `form:"created.lte,omitempty" json:"facility_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	FacilityUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"facility_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	FacilityUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"facility_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	FacilityUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"facility_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	FacilityUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"facility_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	FacilityStatusEQ *string `form:"status.eq,omitempty" json:"facility_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	FacilityStatusNEQ *string `form:"status.neq,omitempty" json:"facility_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	FacilityStatusIn []string `form:"status.in,omitempty" json:"facility_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	FacilityStatusNotIn []string `form:"status.notIn,omitempty" json:"facility_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	FacilityStatusEqualFold *string `form:"status.ieq,omitempty" json:"facility_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	FacilityStatusContains *string `form:"status.has,omitempty" json:"facility_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	FacilityStatusContainsFold *string `form:"status.ihas,omitempty" json:"facility_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	FacilityStatusHasPrefix *string `form:"status.prefix,omitempty" json:"facility_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	FacilityStatusHasSuffix *string `form:"status.suffix,omitempty" json:"facility_status_has_suffix,omitempty"`
}

ListFacilityParams defines parameters for listing Facilities via a GET request.

func (*ListFacilityParams) ApplySorting

func (l *ListFacilityParams) ApplySorting(query *ent.FacilityQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListFacilityParams) Exec

func (l *ListFacilityParams) Exec(ctx context.Context, query *ent.FacilityQuery) (results *PagedResponse[ent.Facility], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListFacilityParams) FilterPredicates

func (l *ListFacilityParams) FilterPredicates() (predicate.Facility, error)

FilterPredicates returns the predicates for filter-related parameters in Facility.

type ListInternetExchangeParams

type ListInternetExchangeParams struct {
	Sorted
	Paginated[*ent.InternetExchangeQuery, ent.InternetExchange]
	Filtered[predicate.InternetExchange]

	// Filters field "org_id" to be equal to the provided value.
	InternetExchangeOrgIDEQ *int `form:"orgID.eq,omitempty" json:"internet_exchange_org_ideq,omitempty"`
	// Filters field "org_id" to be not equal to the provided value.
	InternetExchangeOrgIDNEQ *int `form:"orgID.neq,omitempty" json:"internet_exchange_org_idneq,omitempty"`
	// Filters field "org_id" to be within the provided values.
	InternetExchangeOrgIDIn []int `form:"orgID.in,omitempty" json:"internet_exchange_org_id_in,omitempty"`
	// Filters field "org_id" to be not within the provided values.
	InternetExchangeOrgIDNotIn []int `form:"orgID.notIn,omitempty" json:"internet_exchange_org_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	InternetExchangeNameEQ *string `form:"name.eq,omitempty" json:"internet_exchange_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	InternetExchangeNameNEQ *string `form:"name.neq,omitempty" json:"internet_exchange_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	InternetExchangeNameIn []string `form:"name.in,omitempty" json:"internet_exchange_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	InternetExchangeNameNotIn []string `form:"name.notIn,omitempty" json:"internet_exchange_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	InternetExchangeNameEqualFold *string `form:"name.ieq,omitempty" json:"internet_exchange_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	InternetExchangeNameContains *string `form:"name.has,omitempty" json:"internet_exchange_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	InternetExchangeNameContainsFold *string `form:"name.ihas,omitempty" json:"internet_exchange_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	InternetExchangeNameHasPrefix *string `form:"name.prefix,omitempty" json:"internet_exchange_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	InternetExchangeNameHasSuffix *string `form:"name.suffix,omitempty" json:"internet_exchange_name_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	InternetExchangeAkaEQ *string `form:"aka.eq,omitempty" json:"internet_exchange_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	InternetExchangeAkaNEQ *string `form:"aka.neq,omitempty" json:"internet_exchange_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	InternetExchangeAkaIsNil *bool `form:"aka.null,omitempty" json:"internet_exchange_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	InternetExchangeAkaIn []string `form:"aka.in,omitempty" json:"internet_exchange_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	InternetExchangeAkaNotIn []string `form:"aka.notIn,omitempty" json:"internet_exchange_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	InternetExchangeAkaEqualFold *string `form:"aka.ieq,omitempty" json:"internet_exchange_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	InternetExchangeAkaContains *string `form:"aka.has,omitempty" json:"internet_exchange_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	InternetExchangeAkaContainsFold *string `form:"aka.ihas,omitempty" json:"internet_exchange_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	InternetExchangeAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"internet_exchange_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	InternetExchangeAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"internet_exchange_aka_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	InternetExchangeNameLongEQ *string `form:"nameLong.eq,omitempty" json:"internet_exchange_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	InternetExchangeNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"internet_exchange_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	InternetExchangeNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"internet_exchange_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	InternetExchangeNameLongIn []string `form:"nameLong.in,omitempty" json:"internet_exchange_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	InternetExchangeNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"internet_exchange_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	InternetExchangeNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"internet_exchange_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	InternetExchangeNameLongContains *string `form:"nameLong.has,omitempty" json:"internet_exchange_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	InternetExchangeNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"internet_exchange_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	InternetExchangeNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"internet_exchange_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	InternetExchangeNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"internet_exchange_name_long_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	InternetExchangeCityEQ *string `form:"city.eq,omitempty" json:"internet_exchange_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	InternetExchangeCityNEQ *string `form:"city.neq,omitempty" json:"internet_exchange_city_neq,omitempty"`
	// Filters field "city" to be within the provided values.
	InternetExchangeCityIn []string `form:"city.in,omitempty" json:"internet_exchange_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	InternetExchangeCityNotIn []string `form:"city.notIn,omitempty" json:"internet_exchange_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	InternetExchangeCityEqualFold *string `form:"city.ieq,omitempty" json:"internet_exchange_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	InternetExchangeCityContains *string `form:"city.has,omitempty" json:"internet_exchange_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	InternetExchangeCityContainsFold *string `form:"city.ihas,omitempty" json:"internet_exchange_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	InternetExchangeCityHasPrefix *string `form:"city.prefix,omitempty" json:"internet_exchange_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	InternetExchangeCityHasSuffix *string `form:"city.suffix,omitempty" json:"internet_exchange_city_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	InternetExchangeCountryEQ *string `form:"country.eq,omitempty" json:"internet_exchange_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	InternetExchangeCountryNEQ *string `form:"country.neq,omitempty" json:"internet_exchange_country_neq,omitempty"`
	// Filters field "country" to be within the provided values.
	InternetExchangeCountryIn []string `form:"country.in,omitempty" json:"internet_exchange_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	InternetExchangeCountryNotIn []string `form:"country.notIn,omitempty" json:"internet_exchange_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	InternetExchangeCountryEqualFold *string `form:"country.ieq,omitempty" json:"internet_exchange_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	InternetExchangeCountryContains *string `form:"country.has,omitempty" json:"internet_exchange_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	InternetExchangeCountryContainsFold *string `form:"country.ihas,omitempty" json:"internet_exchange_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	InternetExchangeCountryHasPrefix *string `form:"country.prefix,omitempty" json:"internet_exchange_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	InternetExchangeCountryHasSuffix *string `form:"country.suffix,omitempty" json:"internet_exchange_country_has_suffix,omitempty"`
	// Filters field "region_continent" to be equal to the provided value.
	InternetExchangeRegionContinentEQ *string `form:"regionContinent.eq,omitempty" json:"internet_exchange_region_continent_eq,omitempty"`
	// Filters field "region_continent" to be not equal to the provided value.
	InternetExchangeRegionContinentNEQ *string `form:"regionContinent.neq,omitempty" json:"internet_exchange_region_continent_neq,omitempty"`
	// Filters field "region_continent" to be within the provided values.
	InternetExchangeRegionContinentIn []string `form:"regionContinent.in,omitempty" json:"internet_exchange_region_continent_in,omitempty"`
	// Filters field "region_continent" to be not within the provided values.
	InternetExchangeRegionContinentNotIn []string `form:"regionContinent.notIn,omitempty" json:"internet_exchange_region_continent_not_in,omitempty"`
	// Filters field "region_continent" to be equal to the provided value, case-insensitive.
	InternetExchangeRegionContinentEqualFold *string `form:"regionContinent.ieq,omitempty" json:"internet_exchange_region_continent_equal_fold,omitempty"`
	// Filters field "region_continent" to contain the provided value.
	InternetExchangeRegionContinentContains *string `form:"regionContinent.has,omitempty" json:"internet_exchange_region_continent_contains,omitempty"`
	// Filters field "region_continent" to contain the provided value, case-insensitive.
	InternetExchangeRegionContinentContainsFold *string `form:"regionContinent.ihas,omitempty" json:"internet_exchange_region_continent_contains_fold,omitempty"`
	// Filters field "region_continent" to start with the provided value.
	InternetExchangeRegionContinentHasPrefix *string `form:"regionContinent.prefix,omitempty" json:"internet_exchange_region_continent_has_prefix,omitempty"`
	// Filters field "region_continent" to end with the provided value.
	InternetExchangeRegionContinentHasSuffix *string `form:"regionContinent.suffix,omitempty" json:"internet_exchange_region_continent_has_suffix,omitempty"`
	// Filters field "media" to be equal to the provided value.
	InternetExchangeMediaEQ *string `form:"media.eq,omitempty" json:"internet_exchange_media_eq,omitempty"`
	// Filters field "media" to be not equal to the provided value.
	InternetExchangeMediaNEQ *string `form:"media.neq,omitempty" json:"internet_exchange_media_neq,omitempty"`
	// Filters field "media" to be within the provided values.
	InternetExchangeMediaIn []string `form:"media.in,omitempty" json:"internet_exchange_media_in,omitempty"`
	// Filters field "media" to be not within the provided values.
	InternetExchangeMediaNotIn []string `form:"media.notIn,omitempty" json:"internet_exchange_media_not_in,omitempty"`
	// Filters field "media" to be equal to the provided value, case-insensitive.
	InternetExchangeMediaEqualFold *string `form:"media.ieq,omitempty" json:"internet_exchange_media_equal_fold,omitempty"`
	// Filters field "media" to contain the provided value.
	InternetExchangeMediaContains *string `form:"media.has,omitempty" json:"internet_exchange_media_contains,omitempty"`
	// Filters field "media" to contain the provided value, case-insensitive.
	InternetExchangeMediaContainsFold *string `form:"media.ihas,omitempty" json:"internet_exchange_media_contains_fold,omitempty"`
	// Filters field "media" to start with the provided value.
	InternetExchangeMediaHasPrefix *string `form:"media.prefix,omitempty" json:"internet_exchange_media_has_prefix,omitempty"`
	// Filters field "media" to end with the provided value.
	InternetExchangeMediaHasSuffix *string `form:"media.suffix,omitempty" json:"internet_exchange_media_has_suffix,omitempty"`
	// Filters field "proto_unicast" to be equal to the provided value.
	InternetExchangeProtoUnicastEQ *bool `form:"protoUnicast.eq,omitempty" json:"internet_exchange_proto_unicast_eq,omitempty"`
	// Filters field "proto_ipv6" to be equal to the provided value.
	InternetExchangeProtoIpv6EQ *bool `form:"protoIpv6.eq,omitempty" json:"internet_exchange_proto_ipv6eq,omitempty"`
	// Filters field "created" to be greater than the provided value.
	InternetExchangeCreatedGT *time.Time `form:"created.gt,omitempty" json:"internet_exchange_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	InternetExchangeCreatedGTE *time.Time `form:"created.gte,omitempty" json:"internet_exchange_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	InternetExchangeCreatedLT *time.Time `form:"created.lt,omitempty" json:"internet_exchange_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	InternetExchangeCreatedLTE *time.Time `form:"created.lte,omitempty" json:"internet_exchange_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	InternetExchangeUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"internet_exchange_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	InternetExchangeUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"internet_exchange_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	InternetExchangeUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"internet_exchange_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	InternetExchangeUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"internet_exchange_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	InternetExchangeStatusEQ *string `form:"status.eq,omitempty" json:"internet_exchange_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	InternetExchangeStatusNEQ *string `form:"status.neq,omitempty" json:"internet_exchange_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	InternetExchangeStatusIn []string `form:"status.in,omitempty" json:"internet_exchange_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	InternetExchangeStatusNotIn []string `form:"status.notIn,omitempty" json:"internet_exchange_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	InternetExchangeStatusEqualFold *string `form:"status.ieq,omitempty" json:"internet_exchange_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	InternetExchangeStatusContains *string `form:"status.has,omitempty" json:"internet_exchange_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	InternetExchangeStatusContainsFold *string `form:"status.ihas,omitempty" json:"internet_exchange_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	InternetExchangeStatusHasPrefix *string `form:"status.prefix,omitempty" json:"internet_exchange_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	InternetExchangeStatusHasSuffix *string `form:"status.suffix,omitempty" json:"internet_exchange_status_has_suffix,omitempty"`
}

ListInternetExchangeParams defines parameters for listing InternetExchanges via a GET request.

func (*ListInternetExchangeParams) ApplySorting

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListInternetExchangeParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListInternetExchangeParams) FilterPredicates

FilterPredicates returns the predicates for filter-related parameters in InternetExchange.

type ListIxFacilityParams

type ListIxFacilityParams struct {
	Sorted
	Paginated[*ent.IxFacilityQuery, ent.IxFacility]
	Filtered[predicate.IxFacility]

	// Filters field "ix_id" to be equal to the provided value.
	IxFacilityIxIDEQ *int `form:"ixID.eq,omitempty" json:"ix_facility_ix_ideq,omitempty"`
	// Filters field "ix_id" to be not equal to the provided value.
	IxFacilityIxIDNEQ *int `form:"ixID.neq,omitempty" json:"ix_facility_ix_idneq,omitempty"`
	// Filters field "ix_id" to be within the provided values.
	IxFacilityIxIDIn []int `form:"ixID.in,omitempty" json:"ix_facility_ix_id_in,omitempty"`
	// Filters field "ix_id" to be not within the provided values.
	IxFacilityIxIDNotIn []int `form:"ixID.notIn,omitempty" json:"ix_facility_ix_id_not_in,omitempty"`
	// Filters field "fac_id" to be equal to the provided value.
	IxFacilityFacIDEQ *int `form:"facID.eq,omitempty" json:"ix_facility_fac_ideq,omitempty"`
	// Filters field "fac_id" to be not equal to the provided value.
	IxFacilityFacIDNEQ *int `form:"facID.neq,omitempty" json:"ix_facility_fac_idneq,omitempty"`
	// Filters field "fac_id" to be within the provided values.
	IxFacilityFacIDIn []int `form:"facID.in,omitempty" json:"ix_facility_fac_id_in,omitempty"`
	// Filters field "fac_id" to be not within the provided values.
	IxFacilityFacIDNotIn []int `form:"facID.notIn,omitempty" json:"ix_facility_fac_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	IxFacilityNameEQ *string `form:"name.eq,omitempty" json:"ix_facility_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	IxFacilityNameNEQ *string `form:"name.neq,omitempty" json:"ix_facility_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	IxFacilityNameIsNil *bool `form:"name.null,omitempty" json:"ix_facility_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	IxFacilityNameIn []string `form:"name.in,omitempty" json:"ix_facility_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	IxFacilityNameNotIn []string `form:"name.notIn,omitempty" json:"ix_facility_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	IxFacilityNameEqualFold *string `form:"name.ieq,omitempty" json:"ix_facility_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	IxFacilityNameContains *string `form:"name.has,omitempty" json:"ix_facility_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	IxFacilityNameContainsFold *string `form:"name.ihas,omitempty" json:"ix_facility_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	IxFacilityNameHasPrefix *string `form:"name.prefix,omitempty" json:"ix_facility_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	IxFacilityNameHasSuffix *string `form:"name.suffix,omitempty" json:"ix_facility_name_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	IxFacilityCityEQ *string `form:"city.eq,omitempty" json:"ix_facility_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	IxFacilityCityNEQ *string `form:"city.neq,omitempty" json:"ix_facility_city_neq,omitempty"`
	// Filters field "city" to be null/nil.
	IxFacilityCityIsNil *bool `form:"city.null,omitempty" json:"ix_facility_city_is_nil,omitempty"`
	// Filters field "city" to be within the provided values.
	IxFacilityCityIn []string `form:"city.in,omitempty" json:"ix_facility_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	IxFacilityCityNotIn []string `form:"city.notIn,omitempty" json:"ix_facility_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	IxFacilityCityEqualFold *string `form:"city.ieq,omitempty" json:"ix_facility_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	IxFacilityCityContains *string `form:"city.has,omitempty" json:"ix_facility_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	IxFacilityCityContainsFold *string `form:"city.ihas,omitempty" json:"ix_facility_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	IxFacilityCityHasPrefix *string `form:"city.prefix,omitempty" json:"ix_facility_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	IxFacilityCityHasSuffix *string `form:"city.suffix,omitempty" json:"ix_facility_city_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	IxFacilityCountryEQ *string `form:"country.eq,omitempty" json:"ix_facility_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	IxFacilityCountryNEQ *string `form:"country.neq,omitempty" json:"ix_facility_country_neq,omitempty"`
	// Filters field "country" to be null/nil.
	IxFacilityCountryIsNil *bool `form:"country.null,omitempty" json:"ix_facility_country_is_nil,omitempty"`
	// Filters field "country" to be within the provided values.
	IxFacilityCountryIn []string `form:"country.in,omitempty" json:"ix_facility_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	IxFacilityCountryNotIn []string `form:"country.notIn,omitempty" json:"ix_facility_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	IxFacilityCountryEqualFold *string `form:"country.ieq,omitempty" json:"ix_facility_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	IxFacilityCountryContains *string `form:"country.has,omitempty" json:"ix_facility_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	IxFacilityCountryContainsFold *string `form:"country.ihas,omitempty" json:"ix_facility_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	IxFacilityCountryHasPrefix *string `form:"country.prefix,omitempty" json:"ix_facility_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	IxFacilityCountryHasSuffix *string `form:"country.suffix,omitempty" json:"ix_facility_country_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	IxFacilityCreatedGT *time.Time `form:"created.gt,omitempty" json:"ix_facility_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	IxFacilityCreatedGTE *time.Time `form:"created.gte,omitempty" json:"ix_facility_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	IxFacilityCreatedLT *time.Time `form:"created.lt,omitempty" json:"ix_facility_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	IxFacilityCreatedLTE *time.Time `form:"created.lte,omitempty" json:"ix_facility_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	IxFacilityUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"ix_facility_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	IxFacilityUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"ix_facility_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	IxFacilityUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"ix_facility_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	IxFacilityUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"ix_facility_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	IxFacilityStatusEQ *string `form:"status.eq,omitempty" json:"ix_facility_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	IxFacilityStatusNEQ *string `form:"status.neq,omitempty" json:"ix_facility_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	IxFacilityStatusIn []string `form:"status.in,omitempty" json:"ix_facility_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	IxFacilityStatusNotIn []string `form:"status.notIn,omitempty" json:"ix_facility_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	IxFacilityStatusEqualFold *string `form:"status.ieq,omitempty" json:"ix_facility_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	IxFacilityStatusContains *string `form:"status.has,omitempty" json:"ix_facility_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	IxFacilityStatusContainsFold *string `form:"status.ihas,omitempty" json:"ix_facility_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	IxFacilityStatusHasPrefix *string `form:"status.prefix,omitempty" json:"ix_facility_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	IxFacilityStatusHasSuffix *string `form:"status.suffix,omitempty" json:"ix_facility_status_has_suffix,omitempty"`
}

ListIxFacilityParams defines parameters for listing IxFacilities via a GET request.

func (*ListIxFacilityParams) ApplySorting

func (l *ListIxFacilityParams) ApplySorting(query *ent.IxFacilityQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListIxFacilityParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListIxFacilityParams) FilterPredicates

func (l *ListIxFacilityParams) FilterPredicates() (predicate.IxFacility, error)

FilterPredicates returns the predicates for filter-related parameters in IxFacility.

type ListIxLanParams

type ListIxLanParams struct {
	Sorted
	Paginated[*ent.IxLanQuery, ent.IxLan]
	Filtered[predicate.IxLan]

	// Filters field "ix_id" to be equal to the provided value.
	IxLanIxIDEQ *int `form:"ixID.eq,omitempty" json:"ix_lan_ix_ideq,omitempty"`
	// Filters field "ix_id" to be not equal to the provided value.
	IxLanIxIDNEQ *int `form:"ixID.neq,omitempty" json:"ix_lan_ix_idneq,omitempty"`
	// Filters field "ix_id" to be within the provided values.
	IxLanIxIDIn []int `form:"ixID.in,omitempty" json:"ix_lan_ix_id_in,omitempty"`
	// Filters field "ix_id" to be not within the provided values.
	IxLanIxIDNotIn []int `form:"ixID.notIn,omitempty" json:"ix_lan_ix_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	IxLanNameEQ *string `form:"name.eq,omitempty" json:"ix_lan_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	IxLanNameNEQ *string `form:"name.neq,omitempty" json:"ix_lan_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	IxLanNameIsNil *bool `form:"name.null,omitempty" json:"ix_lan_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	IxLanNameIn []string `form:"name.in,omitempty" json:"ix_lan_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	IxLanNameNotIn []string `form:"name.notIn,omitempty" json:"ix_lan_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	IxLanNameEqualFold *string `form:"name.ieq,omitempty" json:"ix_lan_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	IxLanNameContains *string `form:"name.has,omitempty" json:"ix_lan_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	IxLanNameContainsFold *string `form:"name.ihas,omitempty" json:"ix_lan_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	IxLanNameHasPrefix *string `form:"name.prefix,omitempty" json:"ix_lan_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	IxLanNameHasSuffix *string `form:"name.suffix,omitempty" json:"ix_lan_name_has_suffix,omitempty"`
	// Filters field "mtu" to be equal to the provided value.
	IxLanMtuEQ *int `form:"mtu.eq,omitempty" json:"ix_lan_mtu_eq,omitempty"`
	// Filters field "mtu" to be not equal to the provided value.
	IxLanMtuNEQ *int `form:"mtu.neq,omitempty" json:"ix_lan_mtu_neq,omitempty"`
	// Filters field "mtu" to be greater than the provided value.
	IxLanMtuGT *int `form:"mtu.gt,omitempty" json:"ix_lan_mtu_gt,omitempty"`
	// Filters field "mtu" to be greater than or equal to the provided value.
	IxLanMtuGTE *int `form:"mtu.gte,omitempty" json:"ix_lan_mtu_gte,omitempty"`
	// Filters field "mtu" to be less than the provided value.
	IxLanMtuLT *int `form:"mtu.lt,omitempty" json:"ix_lan_mtu_lt,omitempty"`
	// Filters field "mtu" to be less than or equal to the provided value.
	IxLanMtuLTE *int `form:"mtu.lte,omitempty" json:"ix_lan_mtu_lte,omitempty"`
	// Filters field "mtu" to be within the provided values.
	IxLanMtuIn []int `form:"mtu.in,omitempty" json:"ix_lan_mtu_in,omitempty"`
	// Filters field "mtu" to be not within the provided values.
	IxLanMtuNotIn []int `form:"mtu.notIn,omitempty" json:"ix_lan_mtu_not_in,omitempty"`
	// Filters field "created" to be greater than the provided value.
	IxLanCreatedGT *time.Time `form:"created.gt,omitempty" json:"ix_lan_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	IxLanCreatedGTE *time.Time `form:"created.gte,omitempty" json:"ix_lan_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	IxLanCreatedLT *time.Time `form:"created.lt,omitempty" json:"ix_lan_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	IxLanCreatedLTE *time.Time `form:"created.lte,omitempty" json:"ix_lan_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	IxLanUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"ix_lan_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	IxLanUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"ix_lan_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	IxLanUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"ix_lan_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	IxLanUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"ix_lan_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	IxLanStatusEQ *string `form:"status.eq,omitempty" json:"ix_lan_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	IxLanStatusNEQ *string `form:"status.neq,omitempty" json:"ix_lan_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	IxLanStatusIn []string `form:"status.in,omitempty" json:"ix_lan_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	IxLanStatusNotIn []string `form:"status.notIn,omitempty" json:"ix_lan_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	IxLanStatusEqualFold *string `form:"status.ieq,omitempty" json:"ix_lan_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	IxLanStatusContains *string `form:"status.has,omitempty" json:"ix_lan_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	IxLanStatusContainsFold *string `form:"status.ihas,omitempty" json:"ix_lan_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	IxLanStatusHasPrefix *string `form:"status.prefix,omitempty" json:"ix_lan_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	IxLanStatusHasSuffix *string `form:"status.suffix,omitempty" json:"ix_lan_status_has_suffix,omitempty"`
}

ListIxLanParams defines parameters for listing IxLans via a GET request.

func (*ListIxLanParams) ApplySorting

func (l *ListIxLanParams) ApplySorting(query *ent.IxLanQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListIxLanParams) Exec

func (l *ListIxLanParams) Exec(ctx context.Context, query *ent.IxLanQuery) (results *PagedResponse[ent.IxLan], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListIxLanParams) FilterPredicates

func (l *ListIxLanParams) FilterPredicates() (predicate.IxLan, error)

FilterPredicates returns the predicates for filter-related parameters in IxLan.

type ListIxPrefixParams

type ListIxPrefixParams struct {
	Sorted
	Paginated[*ent.IxPrefixQuery, ent.IxPrefix]
	Filtered[predicate.IxPrefix]

	// Filters field "ixlan_id" to be equal to the provided value.
	IxPrefixIxlanIDEQ *int `form:"ixlanID.eq,omitempty" json:"ix_prefix_ixlan_ideq,omitempty"`
	// Filters field "ixlan_id" to be not equal to the provided value.
	IxPrefixIxlanIDNEQ *int `form:"ixlanID.neq,omitempty" json:"ix_prefix_ixlan_idneq,omitempty"`
	// Filters field "ixlan_id" to be within the provided values.
	IxPrefixIxlanIDIn []int `form:"ixlanID.in,omitempty" json:"ix_prefix_ixlan_id_in,omitempty"`
	// Filters field "ixlan_id" to be not within the provided values.
	IxPrefixIxlanIDNotIn []int `form:"ixlanID.notIn,omitempty" json:"ix_prefix_ixlan_id_not_in,omitempty"`
	// Filters field "protocol" to be equal to the provided value.
	IxPrefixProtocolEQ *string `form:"protocol.eq,omitempty" json:"ix_prefix_protocol_eq,omitempty"`
	// Filters field "protocol" to be not equal to the provided value.
	IxPrefixProtocolNEQ *string `form:"protocol.neq,omitempty" json:"ix_prefix_protocol_neq,omitempty"`
	// Filters field "protocol" to be within the provided values.
	IxPrefixProtocolIn []string `form:"protocol.in,omitempty" json:"ix_prefix_protocol_in,omitempty"`
	// Filters field "protocol" to be not within the provided values.
	IxPrefixProtocolNotIn []string `form:"protocol.notIn,omitempty" json:"ix_prefix_protocol_not_in,omitempty"`
	// Filters field "protocol" to be equal to the provided value, case-insensitive.
	IxPrefixProtocolEqualFold *string `form:"protocol.ieq,omitempty" json:"ix_prefix_protocol_equal_fold,omitempty"`
	// Filters field "protocol" to contain the provided value.
	IxPrefixProtocolContains *string `form:"protocol.has,omitempty" json:"ix_prefix_protocol_contains,omitempty"`
	// Filters field "protocol" to contain the provided value, case-insensitive.
	IxPrefixProtocolContainsFold *string `form:"protocol.ihas,omitempty" json:"ix_prefix_protocol_contains_fold,omitempty"`
	// Filters field "protocol" to start with the provided value.
	IxPrefixProtocolHasPrefix *string `form:"protocol.prefix,omitempty" json:"ix_prefix_protocol_has_prefix,omitempty"`
	// Filters field "protocol" to end with the provided value.
	IxPrefixProtocolHasSuffix *string `form:"protocol.suffix,omitempty" json:"ix_prefix_protocol_has_suffix,omitempty"`
	// Filters field "prefix" to be equal to the provided value.
	IxPrefixPrefixEQ *string `form:"prefix.eq,omitempty" json:"ix_prefix_prefix_eq,omitempty"`
	// Filters field "prefix" to be not equal to the provided value.
	IxPrefixPrefixNEQ *string `form:"prefix.neq,omitempty" json:"ix_prefix_prefix_neq,omitempty"`
	// Filters field "prefix" to be within the provided values.
	IxPrefixPrefixIn []string `form:"prefix.in,omitempty" json:"ix_prefix_prefix_in,omitempty"`
	// Filters field "prefix" to be not within the provided values.
	IxPrefixPrefixNotIn []string `form:"prefix.notIn,omitempty" json:"ix_prefix_prefix_not_in,omitempty"`
	// Filters field "prefix" to be equal to the provided value, case-insensitive.
	IxPrefixPrefixEqualFold *string `form:"prefix.ieq,omitempty" json:"ix_prefix_prefix_equal_fold,omitempty"`
	// Filters field "prefix" to contain the provided value.
	IxPrefixPrefixContains *string `form:"prefix.has,omitempty" json:"ix_prefix_prefix_contains,omitempty"`
	// Filters field "prefix" to contain the provided value, case-insensitive.
	IxPrefixPrefixContainsFold *string `form:"prefix.ihas,omitempty" json:"ix_prefix_prefix_contains_fold,omitempty"`
	// Filters field "prefix" to start with the provided value.
	IxPrefixPrefixHasPrefix *string `form:"prefix.prefix,omitempty" json:"ix_prefix_prefix_has_prefix,omitempty"`
	// Filters field "prefix" to end with the provided value.
	IxPrefixPrefixHasSuffix *string `form:"prefix.suffix,omitempty" json:"ix_prefix_prefix_has_suffix,omitempty"`
	// Filters field "in_dfz" to be equal to the provided value.
	IxPrefixInDfzEQ *bool `form:"inDfz.eq,omitempty" json:"ix_prefix_in_dfz_eq,omitempty"`
	// Filters field "created" to be greater than the provided value.
	IxPrefixCreatedGT *time.Time `form:"created.gt,omitempty" json:"ix_prefix_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	IxPrefixCreatedGTE *time.Time `form:"created.gte,omitempty" json:"ix_prefix_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	IxPrefixCreatedLT *time.Time `form:"created.lt,omitempty" json:"ix_prefix_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	IxPrefixCreatedLTE *time.Time `form:"created.lte,omitempty" json:"ix_prefix_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	IxPrefixUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"ix_prefix_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	IxPrefixUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"ix_prefix_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	IxPrefixUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"ix_prefix_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	IxPrefixUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"ix_prefix_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	IxPrefixStatusEQ *string `form:"status.eq,omitempty" json:"ix_prefix_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	IxPrefixStatusNEQ *string `form:"status.neq,omitempty" json:"ix_prefix_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	IxPrefixStatusIn []string `form:"status.in,omitempty" json:"ix_prefix_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	IxPrefixStatusNotIn []string `form:"status.notIn,omitempty" json:"ix_prefix_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	IxPrefixStatusEqualFold *string `form:"status.ieq,omitempty" json:"ix_prefix_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	IxPrefixStatusContains *string `form:"status.has,omitempty" json:"ix_prefix_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	IxPrefixStatusContainsFold *string `form:"status.ihas,omitempty" json:"ix_prefix_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	IxPrefixStatusHasPrefix *string `form:"status.prefix,omitempty" json:"ix_prefix_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	IxPrefixStatusHasSuffix *string `form:"status.suffix,omitempty" json:"ix_prefix_status_has_suffix,omitempty"`
}

ListIxPrefixParams defines parameters for listing IxPrefixes via a GET request.

func (*ListIxPrefixParams) ApplySorting

func (l *ListIxPrefixParams) ApplySorting(query *ent.IxPrefixQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListIxPrefixParams) Exec

func (l *ListIxPrefixParams) Exec(ctx context.Context, query *ent.IxPrefixQuery) (results *PagedResponse[ent.IxPrefix], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListIxPrefixParams) FilterPredicates

func (l *ListIxPrefixParams) FilterPredicates() (predicate.IxPrefix, error)

FilterPredicates returns the predicates for filter-related parameters in IxPrefix.

type ListNetworkFacilityParams

type ListNetworkFacilityParams struct {
	Sorted
	Paginated[*ent.NetworkFacilityQuery, ent.NetworkFacility]
	Filtered[predicate.NetworkFacility]

	// Filters field "net_id" to be equal to the provided value.
	NetworkFacilityNetIDEQ *int `form:"netID.eq,omitempty" json:"network_facility_net_ideq,omitempty"`
	// Filters field "net_id" to be not equal to the provided value.
	NetworkFacilityNetIDNEQ *int `form:"netID.neq,omitempty" json:"network_facility_net_idneq,omitempty"`
	// Filters field "net_id" to be within the provided values.
	NetworkFacilityNetIDIn []int `form:"netID.in,omitempty" json:"network_facility_net_id_in,omitempty"`
	// Filters field "net_id" to be not within the provided values.
	NetworkFacilityNetIDNotIn []int `form:"netID.notIn,omitempty" json:"network_facility_net_id_not_in,omitempty"`
	// Filters field "fac_id" to be equal to the provided value.
	NetworkFacilityFacIDEQ *int `form:"facID.eq,omitempty" json:"network_facility_fac_ideq,omitempty"`
	// Filters field "fac_id" to be not equal to the provided value.
	NetworkFacilityFacIDNEQ *int `form:"facID.neq,omitempty" json:"network_facility_fac_idneq,omitempty"`
	// Filters field "fac_id" to be within the provided values.
	NetworkFacilityFacIDIn []int `form:"facID.in,omitempty" json:"network_facility_fac_id_in,omitempty"`
	// Filters field "fac_id" to be not within the provided values.
	NetworkFacilityFacIDNotIn []int `form:"facID.notIn,omitempty" json:"network_facility_fac_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	NetworkFacilityNameEQ *string `form:"name.eq,omitempty" json:"network_facility_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	NetworkFacilityNameNEQ *string `form:"name.neq,omitempty" json:"network_facility_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	NetworkFacilityNameIsNil *bool `form:"name.null,omitempty" json:"network_facility_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	NetworkFacilityNameIn []string `form:"name.in,omitempty" json:"network_facility_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	NetworkFacilityNameNotIn []string `form:"name.notIn,omitempty" json:"network_facility_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	NetworkFacilityNameEqualFold *string `form:"name.ieq,omitempty" json:"network_facility_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	NetworkFacilityNameContains *string `form:"name.has,omitempty" json:"network_facility_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	NetworkFacilityNameContainsFold *string `form:"name.ihas,omitempty" json:"network_facility_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	NetworkFacilityNameHasPrefix *string `form:"name.prefix,omitempty" json:"network_facility_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	NetworkFacilityNameHasSuffix *string `form:"name.suffix,omitempty" json:"network_facility_name_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	NetworkFacilityCityEQ *string `form:"city.eq,omitempty" json:"network_facility_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	NetworkFacilityCityNEQ *string `form:"city.neq,omitempty" json:"network_facility_city_neq,omitempty"`
	// Filters field "city" to be null/nil.
	NetworkFacilityCityIsNil *bool `form:"city.null,omitempty" json:"network_facility_city_is_nil,omitempty"`
	// Filters field "city" to be within the provided values.
	NetworkFacilityCityIn []string `form:"city.in,omitempty" json:"network_facility_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	NetworkFacilityCityNotIn []string `form:"city.notIn,omitempty" json:"network_facility_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	NetworkFacilityCityEqualFold *string `form:"city.ieq,omitempty" json:"network_facility_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	NetworkFacilityCityContains *string `form:"city.has,omitempty" json:"network_facility_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	NetworkFacilityCityContainsFold *string `form:"city.ihas,omitempty" json:"network_facility_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	NetworkFacilityCityHasPrefix *string `form:"city.prefix,omitempty" json:"network_facility_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	NetworkFacilityCityHasSuffix *string `form:"city.suffix,omitempty" json:"network_facility_city_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	NetworkFacilityCountryEQ *string `form:"country.eq,omitempty" json:"network_facility_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	NetworkFacilityCountryNEQ *string `form:"country.neq,omitempty" json:"network_facility_country_neq,omitempty"`
	// Filters field "country" to be null/nil.
	NetworkFacilityCountryIsNil *bool `form:"country.null,omitempty" json:"network_facility_country_is_nil,omitempty"`
	// Filters field "country" to be within the provided values.
	NetworkFacilityCountryIn []string `form:"country.in,omitempty" json:"network_facility_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	NetworkFacilityCountryNotIn []string `form:"country.notIn,omitempty" json:"network_facility_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	NetworkFacilityCountryEqualFold *string `form:"country.ieq,omitempty" json:"network_facility_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	NetworkFacilityCountryContains *string `form:"country.has,omitempty" json:"network_facility_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	NetworkFacilityCountryContainsFold *string `form:"country.ihas,omitempty" json:"network_facility_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	NetworkFacilityCountryHasPrefix *string `form:"country.prefix,omitempty" json:"network_facility_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	NetworkFacilityCountryHasSuffix *string `form:"country.suffix,omitempty" json:"network_facility_country_has_suffix,omitempty"`
	// Filters field "local_asn" to be equal to the provided value.
	NetworkFacilityLocalAsnEQ *int `form:"localAsn.eq,omitempty" json:"network_facility_local_asn_eq,omitempty"`
	// Filters field "local_asn" to be not equal to the provided value.
	NetworkFacilityLocalAsnNEQ *int `form:"localAsn.neq,omitempty" json:"network_facility_local_asn_neq,omitempty"`
	// Filters field "local_asn" to be greater than the provided value.
	NetworkFacilityLocalAsnGT *int `form:"localAsn.gt,omitempty" json:"network_facility_local_asn_gt,omitempty"`
	// Filters field "local_asn" to be greater than or equal to the provided value.
	NetworkFacilityLocalAsnGTE *int `form:"localAsn.gte,omitempty" json:"network_facility_local_asn_gte,omitempty"`
	// Filters field "local_asn" to be less than the provided value.
	NetworkFacilityLocalAsnLT *int `form:"localAsn.lt,omitempty" json:"network_facility_local_asn_lt,omitempty"`
	// Filters field "local_asn" to be less than or equal to the provided value.
	NetworkFacilityLocalAsnLTE *int `form:"localAsn.lte,omitempty" json:"network_facility_local_asn_lte,omitempty"`
	// Filters field "local_asn" to be within the provided values.
	NetworkFacilityLocalAsnIn []int `form:"localAsn.in,omitempty" json:"network_facility_local_asn_in,omitempty"`
	// Filters field "local_asn" to be not within the provided values.
	NetworkFacilityLocalAsnNotIn []int `form:"localAsn.notIn,omitempty" json:"network_facility_local_asn_not_in,omitempty"`
	// Filters field "created" to be greater than the provided value.
	NetworkFacilityCreatedGT *time.Time `form:"created.gt,omitempty" json:"network_facility_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	NetworkFacilityCreatedGTE *time.Time `form:"created.gte,omitempty" json:"network_facility_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	NetworkFacilityCreatedLT *time.Time `form:"created.lt,omitempty" json:"network_facility_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	NetworkFacilityCreatedLTE *time.Time `form:"created.lte,omitempty" json:"network_facility_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	NetworkFacilityUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"network_facility_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	NetworkFacilityUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"network_facility_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	NetworkFacilityUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"network_facility_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	NetworkFacilityUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"network_facility_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	NetworkFacilityStatusEQ *string `form:"status.eq,omitempty" json:"network_facility_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	NetworkFacilityStatusNEQ *string `form:"status.neq,omitempty" json:"network_facility_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	NetworkFacilityStatusIn []string `form:"status.in,omitempty" json:"network_facility_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	NetworkFacilityStatusNotIn []string `form:"status.notIn,omitempty" json:"network_facility_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	NetworkFacilityStatusEqualFold *string `form:"status.ieq,omitempty" json:"network_facility_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	NetworkFacilityStatusContains *string `form:"status.has,omitempty" json:"network_facility_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	NetworkFacilityStatusContainsFold *string `form:"status.ihas,omitempty" json:"network_facility_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	NetworkFacilityStatusHasPrefix *string `form:"status.prefix,omitempty" json:"network_facility_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	NetworkFacilityStatusHasSuffix *string `form:"status.suffix,omitempty" json:"network_facility_status_has_suffix,omitempty"`
}

ListNetworkFacilityParams defines parameters for listing NetworkFacilities via a GET request.

func (*ListNetworkFacilityParams) ApplySorting

func (l *ListNetworkFacilityParams) ApplySorting(query *ent.NetworkFacilityQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListNetworkFacilityParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListNetworkFacilityParams) FilterPredicates

func (l *ListNetworkFacilityParams) FilterPredicates() (predicate.NetworkFacility, error)

FilterPredicates returns the predicates for filter-related parameters in NetworkFacility.

type ListNetworkIxLanParams

type ListNetworkIxLanParams struct {
	Sorted
	Paginated[*ent.NetworkIxLanQuery, ent.NetworkIxLan]
	Filtered[predicate.NetworkIxLan]

	// Filters field "net_id" to be equal to the provided value.
	NetworkIxLanNetIDEQ *int `form:"netID.eq,omitempty" json:"network_ix_lan_net_ideq,omitempty"`
	// Filters field "net_id" to be not equal to the provided value.
	NetworkIxLanNetIDNEQ *int `form:"netID.neq,omitempty" json:"network_ix_lan_net_idneq,omitempty"`
	// Filters field "net_id" to be within the provided values.
	NetworkIxLanNetIDIn []int `form:"netID.in,omitempty" json:"network_ix_lan_net_id_in,omitempty"`
	// Filters field "net_id" to be not within the provided values.
	NetworkIxLanNetIDNotIn []int `form:"netID.notIn,omitempty" json:"network_ix_lan_net_id_not_in,omitempty"`
	// Filters field "ix_id" to be equal to the provided value.
	NetworkIxLanIxIDEQ *int `form:"ixID.eq,omitempty" json:"network_ix_lan_ix_ideq,omitempty"`
	// Filters field "ix_id" to be not equal to the provided value.
	NetworkIxLanIxIDNEQ *int `form:"ixID.neq,omitempty" json:"network_ix_lan_ix_idneq,omitempty"`
	// Filters field "ix_id" to be greater than the provided value.
	NetworkIxLanIxIDGT *int `form:"ixID.gt,omitempty" json:"network_ix_lan_ix_idgt,omitempty"`
	// Filters field "ix_id" to be greater than or equal to the provided value.
	NetworkIxLanIxIDGTE *int `form:"ixID.gte,omitempty" json:"network_ix_lan_ix_idgte,omitempty"`
	// Filters field "ix_id" to be less than the provided value.
	NetworkIxLanIxIDLT *int `form:"ixID.lt,omitempty" json:"network_ix_lan_ix_idlt,omitempty"`
	// Filters field "ix_id" to be less than or equal to the provided value.
	NetworkIxLanIxIDLTE *int `form:"ixID.lte,omitempty" json:"network_ix_lan_ix_idlte,omitempty"`
	// Filters field "ix_id" to be within the provided values.
	NetworkIxLanIxIDIn []int `form:"ixID.in,omitempty" json:"network_ix_lan_ix_id_in,omitempty"`
	// Filters field "ix_id" to be not within the provided values.
	NetworkIxLanIxIDNotIn []int `form:"ixID.notIn,omitempty" json:"network_ix_lan_ix_id_not_in,omitempty"`
	// Filters field "ixlan_id" to be equal to the provided value.
	NetworkIxLanIxlanIDEQ *int `form:"ixlanID.eq,omitempty" json:"network_ix_lan_ixlan_ideq,omitempty"`
	// Filters field "ixlan_id" to be not equal to the provided value.
	NetworkIxLanIxlanIDNEQ *int `form:"ixlanID.neq,omitempty" json:"network_ix_lan_ixlan_idneq,omitempty"`
	// Filters field "ixlan_id" to be within the provided values.
	NetworkIxLanIxlanIDIn []int `form:"ixlanID.in,omitempty" json:"network_ix_lan_ixlan_id_in,omitempty"`
	// Filters field "ixlan_id" to be not within the provided values.
	NetworkIxLanIxlanIDNotIn []int `form:"ixlanID.notIn,omitempty" json:"network_ix_lan_ixlan_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	NetworkIxLanNameEQ *string `form:"name.eq,omitempty" json:"network_ix_lan_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	NetworkIxLanNameNEQ *string `form:"name.neq,omitempty" json:"network_ix_lan_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	NetworkIxLanNameIsNil *bool `form:"name.null,omitempty" json:"network_ix_lan_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	NetworkIxLanNameIn []string `form:"name.in,omitempty" json:"network_ix_lan_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	NetworkIxLanNameNotIn []string `form:"name.notIn,omitempty" json:"network_ix_lan_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	NetworkIxLanNameEqualFold *string `form:"name.ieq,omitempty" json:"network_ix_lan_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	NetworkIxLanNameContains *string `form:"name.has,omitempty" json:"network_ix_lan_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	NetworkIxLanNameContainsFold *string `form:"name.ihas,omitempty" json:"network_ix_lan_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	NetworkIxLanNameHasPrefix *string `form:"name.prefix,omitempty" json:"network_ix_lan_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	NetworkIxLanNameHasSuffix *string `form:"name.suffix,omitempty" json:"network_ix_lan_name_has_suffix,omitempty"`
	// Filters field "speed" to be equal to the provided value.
	NetworkIxLanSpeedEQ *int `form:"speed.eq,omitempty" json:"network_ix_lan_speed_eq,omitempty"`
	// Filters field "speed" to be not equal to the provided value.
	NetworkIxLanSpeedNEQ *int `form:"speed.neq,omitempty" json:"network_ix_lan_speed_neq,omitempty"`
	// Filters field "speed" to be greater than the provided value.
	NetworkIxLanSpeedGT *int `form:"speed.gt,omitempty" json:"network_ix_lan_speed_gt,omitempty"`
	// Filters field "speed" to be greater than or equal to the provided value.
	NetworkIxLanSpeedGTE *int `form:"speed.gte,omitempty" json:"network_ix_lan_speed_gte,omitempty"`
	// Filters field "speed" to be less than the provided value.
	NetworkIxLanSpeedLT *int `form:"speed.lt,omitempty" json:"network_ix_lan_speed_lt,omitempty"`
	// Filters field "speed" to be less than or equal to the provided value.
	NetworkIxLanSpeedLTE *int `form:"speed.lte,omitempty" json:"network_ix_lan_speed_lte,omitempty"`
	// Filters field "speed" to be within the provided values.
	NetworkIxLanSpeedIn []int `form:"speed.in,omitempty" json:"network_ix_lan_speed_in,omitempty"`
	// Filters field "speed" to be not within the provided values.
	NetworkIxLanSpeedNotIn []int `form:"speed.notIn,omitempty" json:"network_ix_lan_speed_not_in,omitempty"`
	// Filters field "asn" to be equal to the provided value.
	NetworkIxLanAsnEQ *int `form:"asn.eq,omitempty" json:"network_ix_lan_asn_eq,omitempty"`
	// Filters field "asn" to be not equal to the provided value.
	NetworkIxLanAsnNEQ *int `form:"asn.neq,omitempty" json:"network_ix_lan_asn_neq,omitempty"`
	// Filters field "asn" to be greater than the provided value.
	NetworkIxLanAsnGT *int `form:"asn.gt,omitempty" json:"network_ix_lan_asn_gt,omitempty"`
	// Filters field "asn" to be greater than or equal to the provided value.
	NetworkIxLanAsnGTE *int `form:"asn.gte,omitempty" json:"network_ix_lan_asn_gte,omitempty"`
	// Filters field "asn" to be less than the provided value.
	NetworkIxLanAsnLT *int `form:"asn.lt,omitempty" json:"network_ix_lan_asn_lt,omitempty"`
	// Filters field "asn" to be less than or equal to the provided value.
	NetworkIxLanAsnLTE *int `form:"asn.lte,omitempty" json:"network_ix_lan_asn_lte,omitempty"`
	// Filters field "asn" to be within the provided values.
	NetworkIxLanAsnIn []int `form:"asn.in,omitempty" json:"network_ix_lan_asn_in,omitempty"`
	// Filters field "asn" to be not within the provided values.
	NetworkIxLanAsnNotIn []int `form:"asn.notIn,omitempty" json:"network_ix_lan_asn_not_in,omitempty"`
	// Filters field "ipaddr4" to be equal to the provided value.
	NetworkIxLanIpaddr4EQ *string `form:"ipaddr4.eq,omitempty" json:"network_ix_lan_ipaddr4eq,omitempty"`
	// Filters field "ipaddr4" to be not equal to the provided value.
	NetworkIxLanIpaddr4NEQ *string `form:"ipaddr4.neq,omitempty" json:"network_ix_lan_ipaddr4neq,omitempty"`
	// Filters field "ipaddr4" to be null/nil.
	NetworkIxLanIpaddr4IsNil *bool `form:"ipaddr4.null,omitempty" json:"network_ix_lan_ipaddr4is_nil,omitempty"`
	// Filters field "ipaddr4" to be within the provided values.
	NetworkIxLanIpaddr4In []string `form:"ipaddr4.in,omitempty" json:"network_ix_lan_ipaddr4in,omitempty"`
	// Filters field "ipaddr4" to be not within the provided values.
	NetworkIxLanIpaddr4NotIn []string `form:"ipaddr4.notIn,omitempty" json:"network_ix_lan_ipaddr4not_in,omitempty"`
	// Filters field "ipaddr4" to be equal to the provided value, case-insensitive.
	NetworkIxLanIpaddr4EqualFold *string `form:"ipaddr4.ieq,omitempty" json:"network_ix_lan_ipaddr4equal_fold,omitempty"`
	// Filters field "ipaddr4" to contain the provided value.
	NetworkIxLanIpaddr4Contains *string `form:"ipaddr4.has,omitempty" json:"network_ix_lan_ipaddr4contains,omitempty"`
	// Filters field "ipaddr4" to contain the provided value, case-insensitive.
	NetworkIxLanIpaddr4ContainsFold *string `form:"ipaddr4.ihas,omitempty" json:"network_ix_lan_ipaddr4contains_fold,omitempty"`
	// Filters field "ipaddr4" to start with the provided value.
	NetworkIxLanIpaddr4HasPrefix *string `form:"ipaddr4.prefix,omitempty" json:"network_ix_lan_ipaddr4has_prefix,omitempty"`
	// Filters field "ipaddr4" to end with the provided value.
	NetworkIxLanIpaddr4HasSuffix *string `form:"ipaddr4.suffix,omitempty" json:"network_ix_lan_ipaddr4has_suffix,omitempty"`
	// Filters field "ipaddr6" to be equal to the provided value.
	NetworkIxLanIpaddr6EQ *string `form:"ipaddr6.eq,omitempty" json:"network_ix_lan_ipaddr6eq,omitempty"`
	// Filters field "ipaddr6" to be not equal to the provided value.
	NetworkIxLanIpaddr6NEQ *string `form:"ipaddr6.neq,omitempty" json:"network_ix_lan_ipaddr6neq,omitempty"`
	// Filters field "ipaddr6" to be null/nil.
	NetworkIxLanIpaddr6IsNil *bool `form:"ipaddr6.null,omitempty" json:"network_ix_lan_ipaddr6is_nil,omitempty"`
	// Filters field "ipaddr6" to be within the provided values.
	NetworkIxLanIpaddr6In []string `form:"ipaddr6.in,omitempty" json:"network_ix_lan_ipaddr6in,omitempty"`
	// Filters field "ipaddr6" to be not within the provided values.
	NetworkIxLanIpaddr6NotIn []string `form:"ipaddr6.notIn,omitempty" json:"network_ix_lan_ipaddr6not_in,omitempty"`
	// Filters field "ipaddr6" to be equal to the provided value, case-insensitive.
	NetworkIxLanIpaddr6EqualFold *string `form:"ipaddr6.ieq,omitempty" json:"network_ix_lan_ipaddr6equal_fold,omitempty"`
	// Filters field "ipaddr6" to contain the provided value.
	NetworkIxLanIpaddr6Contains *string `form:"ipaddr6.has,omitempty" json:"network_ix_lan_ipaddr6contains,omitempty"`
	// Filters field "ipaddr6" to contain the provided value, case-insensitive.
	NetworkIxLanIpaddr6ContainsFold *string `form:"ipaddr6.ihas,omitempty" json:"network_ix_lan_ipaddr6contains_fold,omitempty"`
	// Filters field "ipaddr6" to start with the provided value.
	NetworkIxLanIpaddr6HasPrefix *string `form:"ipaddr6.prefix,omitempty" json:"network_ix_lan_ipaddr6has_prefix,omitempty"`
	// Filters field "ipaddr6" to end with the provided value.
	NetworkIxLanIpaddr6HasSuffix *string `form:"ipaddr6.suffix,omitempty" json:"network_ix_lan_ipaddr6has_suffix,omitempty"`
	// Filters field "is_rs_peer" to be equal to the provided value.
	NetworkIxLanIsRsPeerEQ *bool `form:"isRsPeer.eq,omitempty" json:"network_ix_lan_is_rs_peer_eq,omitempty"`
	// Filters field "operational" to be equal to the provided value.
	NetworkIxLanOperationalEQ *bool `form:"operational.eq,omitempty" json:"network_ix_lan_operational_eq,omitempty"`
	// Filters field "created" to be greater than the provided value.
	NetworkIxLanCreatedGT *time.Time `form:"created.gt,omitempty" json:"network_ix_lan_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	NetworkIxLanCreatedGTE *time.Time `form:"created.gte,omitempty" json:"network_ix_lan_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	NetworkIxLanCreatedLT *time.Time `form:"created.lt,omitempty" json:"network_ix_lan_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	NetworkIxLanCreatedLTE *time.Time `form:"created.lte,omitempty" json:"network_ix_lan_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	NetworkIxLanUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"network_ix_lan_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	NetworkIxLanUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"network_ix_lan_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	NetworkIxLanUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"network_ix_lan_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	NetworkIxLanUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"network_ix_lan_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	NetworkIxLanStatusEQ *string `form:"status.eq,omitempty" json:"network_ix_lan_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	NetworkIxLanStatusNEQ *string `form:"status.neq,omitempty" json:"network_ix_lan_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	NetworkIxLanStatusIn []string `form:"status.in,omitempty" json:"network_ix_lan_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	NetworkIxLanStatusNotIn []string `form:"status.notIn,omitempty" json:"network_ix_lan_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	NetworkIxLanStatusEqualFold *string `form:"status.ieq,omitempty" json:"network_ix_lan_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	NetworkIxLanStatusContains *string `form:"status.has,omitempty" json:"network_ix_lan_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	NetworkIxLanStatusContainsFold *string `form:"status.ihas,omitempty" json:"network_ix_lan_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	NetworkIxLanStatusHasPrefix *string `form:"status.prefix,omitempty" json:"network_ix_lan_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	NetworkIxLanStatusHasSuffix *string `form:"status.suffix,omitempty" json:"network_ix_lan_status_has_suffix,omitempty"`
}

ListNetworkIxLanParams defines parameters for listing NetworkIxLans via a GET request.

func (*ListNetworkIxLanParams) ApplySorting

func (l *ListNetworkIxLanParams) ApplySorting(query *ent.NetworkIxLanQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListNetworkIxLanParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListNetworkIxLanParams) FilterPredicates

func (l *ListNetworkIxLanParams) FilterPredicates() (predicate.NetworkIxLan, error)

FilterPredicates returns the predicates for filter-related parameters in NetworkIxLan.

type ListNetworkParams

type ListNetworkParams struct {
	Sorted
	Paginated[*ent.NetworkQuery, ent.Network]
	Filtered[predicate.Network]

	// Filters field "org_id" to be equal to the provided value.
	NetworkOrgIDEQ *int `form:"orgID.eq,omitempty" json:"network_org_ideq,omitempty"`
	// Filters field "org_id" to be not equal to the provided value.
	NetworkOrgIDNEQ *int `form:"orgID.neq,omitempty" json:"network_org_idneq,omitempty"`
	// Filters field "org_id" to be within the provided values.
	NetworkOrgIDIn []int `form:"orgID.in,omitempty" json:"network_org_id_in,omitempty"`
	// Filters field "org_id" to be not within the provided values.
	NetworkOrgIDNotIn []int `form:"orgID.notIn,omitempty" json:"network_org_id_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value.
	NetworkNameEQ *string `form:"name.eq,omitempty" json:"network_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	NetworkNameNEQ *string `form:"name.neq,omitempty" json:"network_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	NetworkNameIn []string `form:"name.in,omitempty" json:"network_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	NetworkNameNotIn []string `form:"name.notIn,omitempty" json:"network_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	NetworkNameEqualFold *string `form:"name.ieq,omitempty" json:"network_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	NetworkNameContains *string `form:"name.has,omitempty" json:"network_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	NetworkNameContainsFold *string `form:"name.ihas,omitempty" json:"network_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	NetworkNameHasPrefix *string `form:"name.prefix,omitempty" json:"network_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	NetworkNameHasSuffix *string `form:"name.suffix,omitempty" json:"network_name_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	NetworkAkaEQ *string `form:"aka.eq,omitempty" json:"network_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	NetworkAkaNEQ *string `form:"aka.neq,omitempty" json:"network_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	NetworkAkaIsNil *bool `form:"aka.null,omitempty" json:"network_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	NetworkAkaIn []string `form:"aka.in,omitempty" json:"network_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	NetworkAkaNotIn []string `form:"aka.notIn,omitempty" json:"network_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	NetworkAkaEqualFold *string `form:"aka.ieq,omitempty" json:"network_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	NetworkAkaContains *string `form:"aka.has,omitempty" json:"network_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	NetworkAkaContainsFold *string `form:"aka.ihas,omitempty" json:"network_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	NetworkAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"network_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	NetworkAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"network_aka_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	NetworkNameLongEQ *string `form:"nameLong.eq,omitempty" json:"network_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	NetworkNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"network_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	NetworkNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"network_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	NetworkNameLongIn []string `form:"nameLong.in,omitempty" json:"network_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	NetworkNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"network_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	NetworkNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"network_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	NetworkNameLongContains *string `form:"nameLong.has,omitempty" json:"network_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	NetworkNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"network_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	NetworkNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"network_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	NetworkNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"network_name_long_has_suffix,omitempty"`
	// Filters field "asn" to be equal to the provided value.
	NetworkAsnEQ *int `form:"asn.eq,omitempty" json:"network_asn_eq,omitempty"`
	// Filters field "asn" to be not equal to the provided value.
	NetworkAsnNEQ *int `form:"asn.neq,omitempty" json:"network_asn_neq,omitempty"`
	// Filters field "asn" to be greater than the provided value.
	NetworkAsnGT *int `form:"asn.gt,omitempty" json:"network_asn_gt,omitempty"`
	// Filters field "asn" to be greater than or equal to the provided value.
	NetworkAsnGTE *int `form:"asn.gte,omitempty" json:"network_asn_gte,omitempty"`
	// Filters field "asn" to be less than the provided value.
	NetworkAsnLT *int `form:"asn.lt,omitempty" json:"network_asn_lt,omitempty"`
	// Filters field "asn" to be less than or equal to the provided value.
	NetworkAsnLTE *int `form:"asn.lte,omitempty" json:"network_asn_lte,omitempty"`
	// Filters field "asn" to be within the provided values.
	NetworkAsnIn []int `form:"asn.in,omitempty" json:"network_asn_in,omitempty"`
	// Filters field "asn" to be not within the provided values.
	NetworkAsnNotIn []int `form:"asn.notIn,omitempty" json:"network_asn_not_in,omitempty"`
	// Filters field "info_type" to be equal to the provided value.
	NetworkInfoTypeEQ *string `form:"infoType.eq,omitempty" json:"network_info_type_eq,omitempty"`
	// Filters field "info_type" to be not equal to the provided value.
	NetworkInfoTypeNEQ *string `form:"infoType.neq,omitempty" json:"network_info_type_neq,omitempty"`
	// Filters field "info_type" to be null/nil.
	NetworkInfoTypeIsNil *bool `form:"infoType.null,omitempty" json:"network_info_type_is_nil,omitempty"`
	// Filters field "info_type" to be within the provided values.
	NetworkInfoTypeIn []string `form:"infoType.in,omitempty" json:"network_info_type_in,omitempty"`
	// Filters field "info_type" to be not within the provided values.
	NetworkInfoTypeNotIn []string `form:"infoType.notIn,omitempty" json:"network_info_type_not_in,omitempty"`
	// Filters field "info_type" to be equal to the provided value, case-insensitive.
	NetworkInfoTypeEqualFold *string `form:"infoType.ieq,omitempty" json:"network_info_type_equal_fold,omitempty"`
	// Filters field "info_type" to contain the provided value.
	NetworkInfoTypeContains *string `form:"infoType.has,omitempty" json:"network_info_type_contains,omitempty"`
	// Filters field "info_type" to contain the provided value, case-insensitive.
	NetworkInfoTypeContainsFold *string `form:"infoType.ihas,omitempty" json:"network_info_type_contains_fold,omitempty"`
	// Filters field "info_type" to start with the provided value.
	NetworkInfoTypeHasPrefix *string `form:"infoType.prefix,omitempty" json:"network_info_type_has_prefix,omitempty"`
	// Filters field "info_type" to end with the provided value.
	NetworkInfoTypeHasSuffix *string `form:"infoType.suffix,omitempty" json:"network_info_type_has_suffix,omitempty"`
	// Filters field "info_traffic" to be equal to the provided value.
	NetworkInfoTrafficEQ *string `form:"infoTraffic.eq,omitempty" json:"network_info_traffic_eq,omitempty"`
	// Filters field "info_traffic" to be not equal to the provided value.
	NetworkInfoTrafficNEQ *string `form:"infoTraffic.neq,omitempty" json:"network_info_traffic_neq,omitempty"`
	// Filters field "info_traffic" to be null/nil.
	NetworkInfoTrafficIsNil *bool `form:"infoTraffic.null,omitempty" json:"network_info_traffic_is_nil,omitempty"`
	// Filters field "info_traffic" to be within the provided values.
	NetworkInfoTrafficIn []string `form:"infoTraffic.in,omitempty" json:"network_info_traffic_in,omitempty"`
	// Filters field "info_traffic" to be not within the provided values.
	NetworkInfoTrafficNotIn []string `form:"infoTraffic.notIn,omitempty" json:"network_info_traffic_not_in,omitempty"`
	// Filters field "info_traffic" to be equal to the provided value, case-insensitive.
	NetworkInfoTrafficEqualFold *string `form:"infoTraffic.ieq,omitempty" json:"network_info_traffic_equal_fold,omitempty"`
	// Filters field "info_traffic" to contain the provided value.
	NetworkInfoTrafficContains *string `form:"infoTraffic.has,omitempty" json:"network_info_traffic_contains,omitempty"`
	// Filters field "info_traffic" to contain the provided value, case-insensitive.
	NetworkInfoTrafficContainsFold *string `form:"infoTraffic.ihas,omitempty" json:"network_info_traffic_contains_fold,omitempty"`
	// Filters field "info_traffic" to start with the provided value.
	NetworkInfoTrafficHasPrefix *string `form:"infoTraffic.prefix,omitempty" json:"network_info_traffic_has_prefix,omitempty"`
	// Filters field "info_traffic" to end with the provided value.
	NetworkInfoTrafficHasSuffix *string `form:"infoTraffic.suffix,omitempty" json:"network_info_traffic_has_suffix,omitempty"`
	// Filters field "info_ratio" to be equal to the provided value.
	NetworkInfoRatioEQ *string `form:"infoRatio.eq,omitempty" json:"network_info_ratio_eq,omitempty"`
	// Filters field "info_ratio" to be not equal to the provided value.
	NetworkInfoRatioNEQ *string `form:"infoRatio.neq,omitempty" json:"network_info_ratio_neq,omitempty"`
	// Filters field "info_ratio" to be null/nil.
	NetworkInfoRatioIsNil *bool `form:"infoRatio.null,omitempty" json:"network_info_ratio_is_nil,omitempty"`
	// Filters field "info_ratio" to be within the provided values.
	NetworkInfoRatioIn []string `form:"infoRatio.in,omitempty" json:"network_info_ratio_in,omitempty"`
	// Filters field "info_ratio" to be not within the provided values.
	NetworkInfoRatioNotIn []string `form:"infoRatio.notIn,omitempty" json:"network_info_ratio_not_in,omitempty"`
	// Filters field "info_ratio" to be equal to the provided value, case-insensitive.
	NetworkInfoRatioEqualFold *string `form:"infoRatio.ieq,omitempty" json:"network_info_ratio_equal_fold,omitempty"`
	// Filters field "info_ratio" to contain the provided value.
	NetworkInfoRatioContains *string `form:"infoRatio.has,omitempty" json:"network_info_ratio_contains,omitempty"`
	// Filters field "info_ratio" to contain the provided value, case-insensitive.
	NetworkInfoRatioContainsFold *string `form:"infoRatio.ihas,omitempty" json:"network_info_ratio_contains_fold,omitempty"`
	// Filters field "info_ratio" to start with the provided value.
	NetworkInfoRatioHasPrefix *string `form:"infoRatio.prefix,omitempty" json:"network_info_ratio_has_prefix,omitempty"`
	// Filters field "info_ratio" to end with the provided value.
	NetworkInfoRatioHasSuffix *string `form:"infoRatio.suffix,omitempty" json:"network_info_ratio_has_suffix,omitempty"`
	// Filters field "info_scope" to be equal to the provided value.
	NetworkInfoScopeEQ *string `form:"infoScope.eq,omitempty" json:"network_info_scope_eq,omitempty"`
	// Filters field "info_scope" to be not equal to the provided value.
	NetworkInfoScopeNEQ *string `form:"infoScope.neq,omitempty" json:"network_info_scope_neq,omitempty"`
	// Filters field "info_scope" to be null/nil.
	NetworkInfoScopeIsNil *bool `form:"infoScope.null,omitempty" json:"network_info_scope_is_nil,omitempty"`
	// Filters field "info_scope" to be within the provided values.
	NetworkInfoScopeIn []string `form:"infoScope.in,omitempty" json:"network_info_scope_in,omitempty"`
	// Filters field "info_scope" to be not within the provided values.
	NetworkInfoScopeNotIn []string `form:"infoScope.notIn,omitempty" json:"network_info_scope_not_in,omitempty"`
	// Filters field "info_scope" to be equal to the provided value, case-insensitive.
	NetworkInfoScopeEqualFold *string `form:"infoScope.ieq,omitempty" json:"network_info_scope_equal_fold,omitempty"`
	// Filters field "info_scope" to contain the provided value.
	NetworkInfoScopeContains *string `form:"infoScope.has,omitempty" json:"network_info_scope_contains,omitempty"`
	// Filters field "info_scope" to contain the provided value, case-insensitive.
	NetworkInfoScopeContainsFold *string `form:"infoScope.ihas,omitempty" json:"network_info_scope_contains_fold,omitempty"`
	// Filters field "info_scope" to start with the provided value.
	NetworkInfoScopeHasPrefix *string `form:"infoScope.prefix,omitempty" json:"network_info_scope_has_prefix,omitempty"`
	// Filters field "info_scope" to end with the provided value.
	NetworkInfoScopeHasSuffix *string `form:"infoScope.suffix,omitempty" json:"network_info_scope_has_suffix,omitempty"`
	// Filters field "info_unicast" to be equal to the provided value.
	NetworkInfoUnicastEQ *bool `form:"infoUnicast.eq,omitempty" json:"network_info_unicast_eq,omitempty"`
	// Filters field "info_ipv6" to be equal to the provided value.
	NetworkInfoIpv6EQ *bool `form:"infoIpv6.eq,omitempty" json:"network_info_ipv6eq,omitempty"`
	// Filters field "policy_general" to be equal to the provided value.
	NetworkPolicyGeneralEQ *string `form:"policyGeneral.eq,omitempty" json:"network_policy_general_eq,omitempty"`
	// Filters field "policy_general" to be not equal to the provided value.
	NetworkPolicyGeneralNEQ *string `form:"policyGeneral.neq,omitempty" json:"network_policy_general_neq,omitempty"`
	// Filters field "policy_general" to be null/nil.
	NetworkPolicyGeneralIsNil *bool `form:"policyGeneral.null,omitempty" json:"network_policy_general_is_nil,omitempty"`
	// Filters field "policy_general" to be within the provided values.
	NetworkPolicyGeneralIn []string `form:"policyGeneral.in,omitempty" json:"network_policy_general_in,omitempty"`
	// Filters field "policy_general" to be not within the provided values.
	NetworkPolicyGeneralNotIn []string `form:"policyGeneral.notIn,omitempty" json:"network_policy_general_not_in,omitempty"`
	// Filters field "policy_general" to be equal to the provided value, case-insensitive.
	NetworkPolicyGeneralEqualFold *string `form:"policyGeneral.ieq,omitempty" json:"network_policy_general_equal_fold,omitempty"`
	// Filters field "policy_general" to contain the provided value.
	NetworkPolicyGeneralContains *string `form:"policyGeneral.has,omitempty" json:"network_policy_general_contains,omitempty"`
	// Filters field "policy_general" to contain the provided value, case-insensitive.
	NetworkPolicyGeneralContainsFold *string `form:"policyGeneral.ihas,omitempty" json:"network_policy_general_contains_fold,omitempty"`
	// Filters field "policy_general" to start with the provided value.
	NetworkPolicyGeneralHasPrefix *string `form:"policyGeneral.prefix,omitempty" json:"network_policy_general_has_prefix,omitempty"`
	// Filters field "policy_general" to end with the provided value.
	NetworkPolicyGeneralHasSuffix *string `form:"policyGeneral.suffix,omitempty" json:"network_policy_general_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	NetworkCreatedGT *time.Time `form:"created.gt,omitempty" json:"network_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	NetworkCreatedGTE *time.Time `form:"created.gte,omitempty" json:"network_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	NetworkCreatedLT *time.Time `form:"created.lt,omitempty" json:"network_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	NetworkCreatedLTE *time.Time `form:"created.lte,omitempty" json:"network_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	NetworkUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"network_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	NetworkUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"network_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	NetworkUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"network_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	NetworkUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"network_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	NetworkStatusEQ *string `form:"status.eq,omitempty" json:"network_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	NetworkStatusNEQ *string `form:"status.neq,omitempty" json:"network_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	NetworkStatusIn []string `form:"status.in,omitempty" json:"network_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	NetworkStatusNotIn []string `form:"status.notIn,omitempty" json:"network_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	NetworkStatusEqualFold *string `form:"status.ieq,omitempty" json:"network_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	NetworkStatusContains *string `form:"status.has,omitempty" json:"network_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	NetworkStatusContainsFold *string `form:"status.ihas,omitempty" json:"network_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	NetworkStatusHasPrefix *string `form:"status.prefix,omitempty" json:"network_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	NetworkStatusHasSuffix *string `form:"status.suffix,omitempty" json:"network_status_has_suffix,omitempty"`
}

ListNetworkParams defines parameters for listing Networks via a GET request.

func (*ListNetworkParams) ApplySorting

func (l *ListNetworkParams) ApplySorting(query *ent.NetworkQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListNetworkParams) Exec

func (l *ListNetworkParams) Exec(ctx context.Context, query *ent.NetworkQuery) (results *PagedResponse[ent.Network], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListNetworkParams) FilterPredicates

func (l *ListNetworkParams) FilterPredicates() (predicate.Network, error)

FilterPredicates returns the predicates for filter-related parameters in Network.

type ListOrganizationParams

type ListOrganizationParams struct {
	Sorted
	Paginated[*ent.OrganizationQuery, ent.Organization]
	Filtered[predicate.Organization]

	// Filters field "name" to be equal to the provided value.
	OrganizationNameEQ *string `form:"name.eq,omitempty" json:"organization_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	OrganizationNameNEQ *string `form:"name.neq,omitempty" json:"organization_name_neq,omitempty"`
	// Filters field "name" to be within the provided values.
	OrganizationNameIn []string `form:"name.in,omitempty" json:"organization_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	OrganizationNameNotIn []string `form:"name.notIn,omitempty" json:"organization_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	OrganizationNameEqualFold *string `form:"name.ieq,omitempty" json:"organization_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	OrganizationNameContains *string `form:"name.has,omitempty" json:"organization_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	OrganizationNameContainsFold *string `form:"name.ihas,omitempty" json:"organization_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	OrganizationNameHasPrefix *string `form:"name.prefix,omitempty" json:"organization_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	OrganizationNameHasSuffix *string `form:"name.suffix,omitempty" json:"organization_name_has_suffix,omitempty"`
	// Filters field "aka" to be equal to the provided value.
	OrganizationAkaEQ *string `form:"aka.eq,omitempty" json:"organization_aka_eq,omitempty"`
	// Filters field "aka" to be not equal to the provided value.
	OrganizationAkaNEQ *string `form:"aka.neq,omitempty" json:"organization_aka_neq,omitempty"`
	// Filters field "aka" to be null/nil.
	OrganizationAkaIsNil *bool `form:"aka.null,omitempty" json:"organization_aka_is_nil,omitempty"`
	// Filters field "aka" to be within the provided values.
	OrganizationAkaIn []string `form:"aka.in,omitempty" json:"organization_aka_in,omitempty"`
	// Filters field "aka" to be not within the provided values.
	OrganizationAkaNotIn []string `form:"aka.notIn,omitempty" json:"organization_aka_not_in,omitempty"`
	// Filters field "aka" to be equal to the provided value, case-insensitive.
	OrganizationAkaEqualFold *string `form:"aka.ieq,omitempty" json:"organization_aka_equal_fold,omitempty"`
	// Filters field "aka" to contain the provided value.
	OrganizationAkaContains *string `form:"aka.has,omitempty" json:"organization_aka_contains,omitempty"`
	// Filters field "aka" to contain the provided value, case-insensitive.
	OrganizationAkaContainsFold *string `form:"aka.ihas,omitempty" json:"organization_aka_contains_fold,omitempty"`
	// Filters field "aka" to start with the provided value.
	OrganizationAkaHasPrefix *string `form:"aka.prefix,omitempty" json:"organization_aka_has_prefix,omitempty"`
	// Filters field "aka" to end with the provided value.
	OrganizationAkaHasSuffix *string `form:"aka.suffix,omitempty" json:"organization_aka_has_suffix,omitempty"`
	// Filters field "name_long" to be equal to the provided value.
	OrganizationNameLongEQ *string `form:"nameLong.eq,omitempty" json:"organization_name_long_eq,omitempty"`
	// Filters field "name_long" to be not equal to the provided value.
	OrganizationNameLongNEQ *string `form:"nameLong.neq,omitempty" json:"organization_name_long_neq,omitempty"`
	// Filters field "name_long" to be null/nil.
	OrganizationNameLongIsNil *bool `form:"nameLong.null,omitempty" json:"organization_name_long_is_nil,omitempty"`
	// Filters field "name_long" to be within the provided values.
	OrganizationNameLongIn []string `form:"nameLong.in,omitempty" json:"organization_name_long_in,omitempty"`
	// Filters field "name_long" to be not within the provided values.
	OrganizationNameLongNotIn []string `form:"nameLong.notIn,omitempty" json:"organization_name_long_not_in,omitempty"`
	// Filters field "name_long" to be equal to the provided value, case-insensitive.
	OrganizationNameLongEqualFold *string `form:"nameLong.ieq,omitempty" json:"organization_name_long_equal_fold,omitempty"`
	// Filters field "name_long" to contain the provided value.
	OrganizationNameLongContains *string `form:"nameLong.has,omitempty" json:"organization_name_long_contains,omitempty"`
	// Filters field "name_long" to contain the provided value, case-insensitive.
	OrganizationNameLongContainsFold *string `form:"nameLong.ihas,omitempty" json:"organization_name_long_contains_fold,omitempty"`
	// Filters field "name_long" to start with the provided value.
	OrganizationNameLongHasPrefix *string `form:"nameLong.prefix,omitempty" json:"organization_name_long_has_prefix,omitempty"`
	// Filters field "name_long" to end with the provided value.
	OrganizationNameLongHasSuffix *string `form:"nameLong.suffix,omitempty" json:"organization_name_long_has_suffix,omitempty"`
	// Filters field "city" to be equal to the provided value.
	OrganizationCityEQ *string `form:"city.eq,omitempty" json:"organization_city_eq,omitempty"`
	// Filters field "city" to be not equal to the provided value.
	OrganizationCityNEQ *string `form:"city.neq,omitempty" json:"organization_city_neq,omitempty"`
	// Filters field "city" to be null/nil.
	OrganizationCityIsNil *bool `form:"city.null,omitempty" json:"organization_city_is_nil,omitempty"`
	// Filters field "city" to be within the provided values.
	OrganizationCityIn []string `form:"city.in,omitempty" json:"organization_city_in,omitempty"`
	// Filters field "city" to be not within the provided values.
	OrganizationCityNotIn []string `form:"city.notIn,omitempty" json:"organization_city_not_in,omitempty"`
	// Filters field "city" to be equal to the provided value, case-insensitive.
	OrganizationCityEqualFold *string `form:"city.ieq,omitempty" json:"organization_city_equal_fold,omitempty"`
	// Filters field "city" to contain the provided value.
	OrganizationCityContains *string `form:"city.has,omitempty" json:"organization_city_contains,omitempty"`
	// Filters field "city" to contain the provided value, case-insensitive.
	OrganizationCityContainsFold *string `form:"city.ihas,omitempty" json:"organization_city_contains_fold,omitempty"`
	// Filters field "city" to start with the provided value.
	OrganizationCityHasPrefix *string `form:"city.prefix,omitempty" json:"organization_city_has_prefix,omitempty"`
	// Filters field "city" to end with the provided value.
	OrganizationCityHasSuffix *string `form:"city.suffix,omitempty" json:"organization_city_has_suffix,omitempty"`
	// Filters field "state" to be equal to the provided value.
	OrganizationStateEQ *string `form:"state.eq,omitempty" json:"organization_state_eq,omitempty"`
	// Filters field "state" to be not equal to the provided value.
	OrganizationStateNEQ *string `form:"state.neq,omitempty" json:"organization_state_neq,omitempty"`
	// Filters field "state" to be null/nil.
	OrganizationStateIsNil *bool `form:"state.null,omitempty" json:"organization_state_is_nil,omitempty"`
	// Filters field "state" to be within the provided values.
	OrganizationStateIn []string `form:"state.in,omitempty" json:"organization_state_in,omitempty"`
	// Filters field "state" to be not within the provided values.
	OrganizationStateNotIn []string `form:"state.notIn,omitempty" json:"organization_state_not_in,omitempty"`
	// Filters field "state" to be equal to the provided value, case-insensitive.
	OrganizationStateEqualFold *string `form:"state.ieq,omitempty" json:"organization_state_equal_fold,omitempty"`
	// Filters field "state" to contain the provided value.
	OrganizationStateContains *string `form:"state.has,omitempty" json:"organization_state_contains,omitempty"`
	// Filters field "state" to contain the provided value, case-insensitive.
	OrganizationStateContainsFold *string `form:"state.ihas,omitempty" json:"organization_state_contains_fold,omitempty"`
	// Filters field "state" to start with the provided value.
	OrganizationStateHasPrefix *string `form:"state.prefix,omitempty" json:"organization_state_has_prefix,omitempty"`
	// Filters field "state" to end with the provided value.
	OrganizationStateHasSuffix *string `form:"state.suffix,omitempty" json:"organization_state_has_suffix,omitempty"`
	// Filters field "country" to be equal to the provided value.
	OrganizationCountryEQ *string `form:"country.eq,omitempty" json:"organization_country_eq,omitempty"`
	// Filters field "country" to be not equal to the provided value.
	OrganizationCountryNEQ *string `form:"country.neq,omitempty" json:"organization_country_neq,omitempty"`
	// Filters field "country" to be null/nil.
	OrganizationCountryIsNil *bool `form:"country.null,omitempty" json:"organization_country_is_nil,omitempty"`
	// Filters field "country" to be within the provided values.
	OrganizationCountryIn []string `form:"country.in,omitempty" json:"organization_country_in,omitempty"`
	// Filters field "country" to be not within the provided values.
	OrganizationCountryNotIn []string `form:"country.notIn,omitempty" json:"organization_country_not_in,omitempty"`
	// Filters field "country" to be equal to the provided value, case-insensitive.
	OrganizationCountryEqualFold *string `form:"country.ieq,omitempty" json:"organization_country_equal_fold,omitempty"`
	// Filters field "country" to contain the provided value.
	OrganizationCountryContains *string `form:"country.has,omitempty" json:"organization_country_contains,omitempty"`
	// Filters field "country" to contain the provided value, case-insensitive.
	OrganizationCountryContainsFold *string `form:"country.ihas,omitempty" json:"organization_country_contains_fold,omitempty"`
	// Filters field "country" to start with the provided value.
	OrganizationCountryHasPrefix *string `form:"country.prefix,omitempty" json:"organization_country_has_prefix,omitempty"`
	// Filters field "country" to end with the provided value.
	OrganizationCountryHasSuffix *string `form:"country.suffix,omitempty" json:"organization_country_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	OrganizationCreatedGT *time.Time `form:"created.gt,omitempty" json:"organization_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	OrganizationCreatedGTE *time.Time `form:"created.gte,omitempty" json:"organization_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	OrganizationCreatedLT *time.Time `form:"created.lt,omitempty" json:"organization_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	OrganizationCreatedLTE *time.Time `form:"created.lte,omitempty" json:"organization_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	OrganizationUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"organization_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	OrganizationUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"organization_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	OrganizationUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"organization_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	OrganizationUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"organization_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	OrganizationStatusEQ *string `form:"status.eq,omitempty" json:"organization_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	OrganizationStatusNEQ *string `form:"status.neq,omitempty" json:"organization_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	OrganizationStatusIn []string `form:"status.in,omitempty" json:"organization_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	OrganizationStatusNotIn []string `form:"status.notIn,omitempty" json:"organization_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	OrganizationStatusEqualFold *string `form:"status.ieq,omitempty" json:"organization_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	OrganizationStatusContains *string `form:"status.has,omitempty" json:"organization_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	OrganizationStatusContainsFold *string `form:"status.ihas,omitempty" json:"organization_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	OrganizationStatusHasPrefix *string `form:"status.prefix,omitempty" json:"organization_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	OrganizationStatusHasSuffix *string `form:"status.suffix,omitempty" json:"organization_status_has_suffix,omitempty"`
}

ListOrganizationParams defines parameters for listing Organizations via a GET request.

func (*ListOrganizationParams) ApplySorting

func (l *ListOrganizationParams) ApplySorting(query *ent.OrganizationQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListOrganizationParams) Exec

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListOrganizationParams) FilterPredicates

func (l *ListOrganizationParams) FilterPredicates() (predicate.Organization, error)

FilterPredicates returns the predicates for filter-related parameters in Organization.

type ListPocParams

type ListPocParams struct {
	Sorted
	Paginated[*ent.PocQuery, ent.Poc]
	Filtered[predicate.Poc]

	// Filters field "net_id" to be equal to the provided value.
	PocNetIDEQ *int `form:"netID.eq,omitempty" json:"poc_net_ideq,omitempty"`
	// Filters field "net_id" to be not equal to the provided value.
	PocNetIDNEQ *int `form:"netID.neq,omitempty" json:"poc_net_idneq,omitempty"`
	// Filters field "net_id" to be within the provided values.
	PocNetIDIn []int `form:"netID.in,omitempty" json:"poc_net_id_in,omitempty"`
	// Filters field "net_id" to be not within the provided values.
	PocNetIDNotIn []int `form:"netID.notIn,omitempty" json:"poc_net_id_not_in,omitempty"`
	// Filters field "role" to be equal to the provided value.
	PocRoleEQ *string `form:"role.eq,omitempty" json:"poc_role_eq,omitempty"`
	// Filters field "role" to be not equal to the provided value.
	PocRoleNEQ *string `form:"role.neq,omitempty" json:"poc_role_neq,omitempty"`
	// Filters field "role" to be within the provided values.
	PocRoleIn []string `form:"role.in,omitempty" json:"poc_role_in,omitempty"`
	// Filters field "role" to be not within the provided values.
	PocRoleNotIn []string `form:"role.notIn,omitempty" json:"poc_role_not_in,omitempty"`
	// Filters field "role" to be equal to the provided value, case-insensitive.
	PocRoleEqualFold *string `form:"role.ieq,omitempty" json:"poc_role_equal_fold,omitempty"`
	// Filters field "role" to contain the provided value.
	PocRoleContains *string `form:"role.has,omitempty" json:"poc_role_contains,omitempty"`
	// Filters field "role" to contain the provided value, case-insensitive.
	PocRoleContainsFold *string `form:"role.ihas,omitempty" json:"poc_role_contains_fold,omitempty"`
	// Filters field "role" to start with the provided value.
	PocRoleHasPrefix *string `form:"role.prefix,omitempty" json:"poc_role_has_prefix,omitempty"`
	// Filters field "role" to end with the provided value.
	PocRoleHasSuffix *string `form:"role.suffix,omitempty" json:"poc_role_has_suffix,omitempty"`
	// Filters field "visible" to be equal to the provided value.
	PocVisibleEQ *string `form:"visible.eq,omitempty" json:"poc_visible_eq,omitempty"`
	// Filters field "visible" to be not equal to the provided value.
	PocVisibleNEQ *string `form:"visible.neq,omitempty" json:"poc_visible_neq,omitempty"`
	// Filters field "visible" to be within the provided values.
	PocVisibleIn []string `form:"visible.in,omitempty" json:"poc_visible_in,omitempty"`
	// Filters field "visible" to be not within the provided values.
	PocVisibleNotIn []string `form:"visible.notIn,omitempty" json:"poc_visible_not_in,omitempty"`
	// Filters field "visible" to be equal to the provided value, case-insensitive.
	PocVisibleEqualFold *string `form:"visible.ieq,omitempty" json:"poc_visible_equal_fold,omitempty"`
	// Filters field "visible" to contain the provided value.
	PocVisibleContains *string `form:"visible.has,omitempty" json:"poc_visible_contains,omitempty"`
	// Filters field "visible" to contain the provided value, case-insensitive.
	PocVisibleContainsFold *string `form:"visible.ihas,omitempty" json:"poc_visible_contains_fold,omitempty"`
	// Filters field "visible" to start with the provided value.
	PocVisibleHasPrefix *string `form:"visible.prefix,omitempty" json:"poc_visible_has_prefix,omitempty"`
	// Filters field "visible" to end with the provided value.
	PocVisibleHasSuffix *string `form:"visible.suffix,omitempty" json:"poc_visible_has_suffix,omitempty"`
	// Filters field "name" to be equal to the provided value.
	PocNameEQ *string `form:"name.eq,omitempty" json:"poc_name_eq,omitempty"`
	// Filters field "name" to be not equal to the provided value.
	PocNameNEQ *string `form:"name.neq,omitempty" json:"poc_name_neq,omitempty"`
	// Filters field "name" to be null/nil.
	PocNameIsNil *bool `form:"name.null,omitempty" json:"poc_name_is_nil,omitempty"`
	// Filters field "name" to be within the provided values.
	PocNameIn []string `form:"name.in,omitempty" json:"poc_name_in,omitempty"`
	// Filters field "name" to be not within the provided values.
	PocNameNotIn []string `form:"name.notIn,omitempty" json:"poc_name_not_in,omitempty"`
	// Filters field "name" to be equal to the provided value, case-insensitive.
	PocNameEqualFold *string `form:"name.ieq,omitempty" json:"poc_name_equal_fold,omitempty"`
	// Filters field "name" to contain the provided value.
	PocNameContains *string `form:"name.has,omitempty" json:"poc_name_contains,omitempty"`
	// Filters field "name" to contain the provided value, case-insensitive.
	PocNameContainsFold *string `form:"name.ihas,omitempty" json:"poc_name_contains_fold,omitempty"`
	// Filters field "name" to start with the provided value.
	PocNameHasPrefix *string `form:"name.prefix,omitempty" json:"poc_name_has_prefix,omitempty"`
	// Filters field "name" to end with the provided value.
	PocNameHasSuffix *string `form:"name.suffix,omitempty" json:"poc_name_has_suffix,omitempty"`
	// Filters field "email" to be equal to the provided value.
	PocEmailEQ *string `form:"email.eq,omitempty" json:"poc_email_eq,omitempty"`
	// Filters field "email" to be not equal to the provided value.
	PocEmailNEQ *string `form:"email.neq,omitempty" json:"poc_email_neq,omitempty"`
	// Filters field "email" to be null/nil.
	PocEmailIsNil *bool `form:"email.null,omitempty" json:"poc_email_is_nil,omitempty"`
	// Filters field "email" to be within the provided values.
	PocEmailIn []string `form:"email.in,omitempty" json:"poc_email_in,omitempty"`
	// Filters field "email" to be not within the provided values.
	PocEmailNotIn []string `form:"email.notIn,omitempty" json:"poc_email_not_in,omitempty"`
	// Filters field "email" to be equal to the provided value, case-insensitive.
	PocEmailEqualFold *string `form:"email.ieq,omitempty" json:"poc_email_equal_fold,omitempty"`
	// Filters field "email" to contain the provided value.
	PocEmailContains *string `form:"email.has,omitempty" json:"poc_email_contains,omitempty"`
	// Filters field "email" to contain the provided value, case-insensitive.
	PocEmailContainsFold *string `form:"email.ihas,omitempty" json:"poc_email_contains_fold,omitempty"`
	// Filters field "email" to start with the provided value.
	PocEmailHasPrefix *string `form:"email.prefix,omitempty" json:"poc_email_has_prefix,omitempty"`
	// Filters field "email" to end with the provided value.
	PocEmailHasSuffix *string `form:"email.suffix,omitempty" json:"poc_email_has_suffix,omitempty"`
	// Filters field "created" to be greater than the provided value.
	PocCreatedGT *time.Time `form:"created.gt,omitempty" json:"poc_created_gt,omitempty"`
	// Filters field "created" to be greater than or equal to the provided value.
	PocCreatedGTE *time.Time `form:"created.gte,omitempty" json:"poc_created_gte,omitempty"`
	// Filters field "created" to be less than the provided value.
	PocCreatedLT *time.Time `form:"created.lt,omitempty" json:"poc_created_lt,omitempty"`
	// Filters field "created" to be less than or equal to the provided value.
	PocCreatedLTE *time.Time `form:"created.lte,omitempty" json:"poc_created_lte,omitempty"`
	// Filters field "updated" to be greater than the provided value.
	PocUpdatedGT *time.Time `form:"updated.gt,omitempty" json:"poc_updated_gt,omitempty"`
	// Filters field "updated" to be greater than or equal to the provided value.
	PocUpdatedGTE *time.Time `form:"updated.gte,omitempty" json:"poc_updated_gte,omitempty"`
	// Filters field "updated" to be less than the provided value.
	PocUpdatedLT *time.Time `form:"updated.lt,omitempty" json:"poc_updated_lt,omitempty"`
	// Filters field "updated" to be less than or equal to the provided value.
	PocUpdatedLTE *time.Time `form:"updated.lte,omitempty" json:"poc_updated_lte,omitempty"`
	// Filters field "status" to be equal to the provided value.
	PocStatusEQ *string `form:"status.eq,omitempty" json:"poc_status_eq,omitempty"`
	// Filters field "status" to be not equal to the provided value.
	PocStatusNEQ *string `form:"status.neq,omitempty" json:"poc_status_neq,omitempty"`
	// Filters field "status" to be within the provided values.
	PocStatusIn []string `form:"status.in,omitempty" json:"poc_status_in,omitempty"`
	// Filters field "status" to be not within the provided values.
	PocStatusNotIn []string `form:"status.notIn,omitempty" json:"poc_status_not_in,omitempty"`
	// Filters field "status" to be equal to the provided value, case-insensitive.
	PocStatusEqualFold *string `form:"status.ieq,omitempty" json:"poc_status_equal_fold,omitempty"`
	// Filters field "status" to contain the provided value.
	PocStatusContains *string `form:"status.has,omitempty" json:"poc_status_contains,omitempty"`
	// Filters field "status" to contain the provided value, case-insensitive.
	PocStatusContainsFold *string `form:"status.ihas,omitempty" json:"poc_status_contains_fold,omitempty"`
	// Filters field "status" to start with the provided value.
	PocStatusHasPrefix *string `form:"status.prefix,omitempty" json:"poc_status_has_prefix,omitempty"`
	// Filters field "status" to end with the provided value.
	PocStatusHasSuffix *string `form:"status.suffix,omitempty" json:"poc_status_has_suffix,omitempty"`
}

ListPocParams defines parameters for listing Pocs via a GET request.

func (*ListPocParams) ApplySorting

func (l *ListPocParams) ApplySorting(query *ent.PocQuery) error

ApplySorting applies sorting to the query based on the provided sort and order fields.

func (*ListPocParams) Exec

func (l *ListPocParams) Exec(ctx context.Context, query *ent.PocQuery) (results *PagedResponse[ent.Poc], err error)

Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.

func (*ListPocParams) FilterPredicates

func (l *ListPocParams) FilterPredicates() (predicate.Poc, error)

FilterPredicates returns the predicates for filter-related parameters in Poc.

type M

type M map[string]any

M is an alias for map[string]any, which makes it easier to respond with generic JSON data structures.

type Operation

type Operation string

Operation represents the CRUD operation(s).

const (
	// OperationCreate represents the create operation (method: POST).
	OperationCreate Operation = "create"
	// OperationRead represents the read operation (method: GET).
	OperationRead Operation = "read"
	// OperationUpdate represents the update operation (method: PATCH).
	OperationUpdate Operation = "update"
	// OperationDelete represents the delete operation (method: DELETE).
	OperationDelete Operation = "delete"
	// OperationList represents the list operation (method: GET).
	OperationList Operation = "list"
)

type Option

type Option[T any] struct {
	// contains filtered or unexported fields
}

Option is a container for an optional value of type T.

func (Option[T]) Get

func (o Option[T]) Get() (T, bool)

Get returns value and presence.

func (Option[T]) MarshalJSON

func (o Option[T]) MarshalJSON() ([]byte, error)

MarshalJSON encodes Option to JSON.

func (Option[T]) MarshalText

func (o Option[T]) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (Option[T]) OrElse

func (o Option[T]) OrElse(fallback T) T

OrElse returns value if present, or the provided default value.

func (Option[T]) OrEmpty

func (o Option[T]) OrEmpty() T

OrEmpty returns value if present, or the provided empty value.

func (Option[T]) Present

func (o Option[T]) Present() bool

Present returns false when value is absent.

func (Option[T]) Ptr

func (o Option[T]) Ptr() *T

Ptr returns value if present, or nil otherwise.

func (*Option[T]) UnmarshalJSON

func (o *Option[T]) UnmarshalJSON(b []byte) error

UnmarshalJSON decodes Option from JSON.

func (*Option[T]) UnmarshalText

func (o *Option[T]) UnmarshalText(data []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

type PagableQuery

type PagableQuery[P any, T any] interface {
	Limit(int) P
	Offset(int) P
	Count(ctx context.Context) (int, error)
	All(ctx context.Context) ([]*T, error)
}

PagableQuery is an interface for ent queries which support providing limit/offset.

type PageConfig

type PageConfig struct {
	MinItemsPerPage int `json:"min_items_per_page"`
	ItemsPerPage    int `json:"items_per_page"`
	MaxItemsPerPage int `json:"max_items_per_page"`
}

type PagedResponse

type PagedResponse[T any] struct {
	Page       int  `json:"page"`         // Current page number.
	TotalCount int  `json:"total_count"`  // Total number of items.
	LastPage   int  `json:"last_page"`    // Last page number.
	IsLastPage bool `json:"is_last_page"` // Whether this is the last page.
	Content    []*T `json:"content"`      // Paged data.
}

PagedResponse is the JSON response structure for paged queries.

func (*PagedResponse[T]) GetIsLastPage

func (p *PagedResponse[T]) GetIsLastPage() bool

GetIsLastPage returns whether this is the last page.

func (*PagedResponse[T]) GetLastPage

func (p *PagedResponse[T]) GetLastPage() int

GetLastPage returns the last page number.

func (*PagedResponse[T]) GetPage

func (p *PagedResponse[T]) GetPage() int

GetPage returns the current page number.

func (*PagedResponse[T]) GetTotalCount

func (p *PagedResponse[T]) GetTotalCount() int

GetTotalCount returns the total number of items.

type Paginated

type Paginated[P PagableQuery[P, T], T any] struct {
	Page         *int `json:"page"     form:"page,omitempty"`
	ItemsPerPage *int `json:"per_page" form:"per_page,omitempty"`
	ResultCount  int  `json:"-"        form:"-"` // ResultCount is populated by the query execution inside of ApplyPagination.
	LastPage     int  `json:"-"        form:"-"` // LastPage is populated by the query execution inside of ApplyPagination.
	// contains filtered or unexported fields
}

func (*Paginated[P, T]) ApplyPagination

func (p *Paginated[P, T]) ApplyPagination(ctx context.Context, query P, pageConfig *PageConfig) (P, error)

ApplyPagination applies offsets and limits, and also runs a count query on the provided query to calculate total results and what the last page number is.

func (*Paginated[P, T]) ExecutePaginated

func (p *Paginated[P, T]) ExecutePaginated(ctx context.Context, query P, pageConfig *PageConfig) (*PagedResponse[T], error)

ExecutePaginated executes the query and returns a paged response. If ApplyPagination was not called before, it will be called here.

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db *ent.Client, config *ServerConfig) (*Server, error)

NewServer returns a new auto-generated server implementation for your ent schema. Server.Handler returns a ready-to-use http.Handler that mounts all of the necessary endpoints.

func (*Server) DefaultErrorHandler

func (s *Server) DefaultErrorHandler(w http.ResponseWriter, r *http.Request, op Operation, err error)

DefaultErrorHandler is the default error handler for the Server.

func (*Server) Docs

func (s *Server) Docs(w http.ResponseWriter, r *http.Request)

func (*Server) GetCampu

func (s *Server) GetCampu(r *http.Request, campuID int) (*ent.Campus, error)

GetCampu maps to "GET /campus/{id}".

func (*Server) GetCampuOrganization

func (s *Server) GetCampuOrganization(r *http.Request, campuID int) (*ent.Organization, error)

GetCampuOrganization maps to "GET /campus/{id}/organization".

func (*Server) GetCarrier

func (s *Server) GetCarrier(r *http.Request, carrierID int) (*ent.Carrier, error)

GetCarrier maps to "GET /carriers/{id}".

func (*Server) GetCarrierFacility

func (s *Server) GetCarrierFacility(r *http.Request, carrierfacilityID int) (*ent.CarrierFacility, error)

GetCarrierFacility maps to "GET /carrier-facilities/{id}".

func (*Server) GetCarrierFacilityCarrier

func (s *Server) GetCarrierFacilityCarrier(r *http.Request, carrierfacilityID int) (*ent.Carrier, error)

GetCarrierFacilityCarrier maps to "GET /carrier-facilities/{id}/carrier".

func (*Server) GetCarrierFacilityFacility

func (s *Server) GetCarrierFacilityFacility(r *http.Request, carrierfacilityID int) (*ent.Facility, error)

GetCarrierFacilityFacility maps to "GET /carrier-facilities/{id}/facility".

func (*Server) GetCarrierOrganization

func (s *Server) GetCarrierOrganization(r *http.Request, carrierID int) (*ent.Organization, error)

GetCarrierOrganization maps to "GET /carriers/{id}/organization".

func (*Server) GetFacility

func (s *Server) GetFacility(r *http.Request, facilityID int) (*ent.Facility, error)

GetFacility maps to "GET /facilities/{id}".

func (*Server) GetFacilityCampu

func (s *Server) GetFacilityCampu(r *http.Request, facilityID int) (*ent.Campus, error)

GetFacilityCampu maps to "GET /facilities/{id}/campus".

func (*Server) GetFacilityOrganization

func (s *Server) GetFacilityOrganization(r *http.Request, facilityID int) (*ent.Organization, error)

GetFacilityOrganization maps to "GET /facilities/{id}/organization".

func (*Server) GetInternetExchange

func (s *Server) GetInternetExchange(r *http.Request, internetexchangeID int) (*ent.InternetExchange, error)

GetInternetExchange maps to "GET /internet-exchanges/{id}".

func (*Server) GetInternetExchangeOrganization

func (s *Server) GetInternetExchangeOrganization(r *http.Request, internetexchangeID int) (*ent.Organization, error)

GetInternetExchangeOrganization maps to "GET /internet-exchanges/{id}/organization".

func (*Server) GetIxFacility

func (s *Server) GetIxFacility(r *http.Request, ixfacilityID int) (*ent.IxFacility, error)

GetIxFacility maps to "GET /ix-facilities/{id}".

func (*Server) GetIxFacilityFacility

func (s *Server) GetIxFacilityFacility(r *http.Request, ixfacilityID int) (*ent.Facility, error)

GetIxFacilityFacility maps to "GET /ix-facilities/{id}/facility".

func (*Server) GetIxFacilityInternetExchange

func (s *Server) GetIxFacilityInternetExchange(r *http.Request, ixfacilityID int) (*ent.InternetExchange, error)

GetIxFacilityInternetExchange maps to "GET /ix-facilities/{id}/internet-exchange".

func (*Server) GetIxLan

func (s *Server) GetIxLan(r *http.Request, ixlanID int) (*ent.IxLan, error)

GetIxLan maps to "GET /ix-lans/{id}".

func (*Server) GetIxLanInternetExchange

func (s *Server) GetIxLanInternetExchange(r *http.Request, ixlanID int) (*ent.InternetExchange, error)

GetIxLanInternetExchange maps to "GET /ix-lans/{id}/internet-exchange".

func (*Server) GetIxPrefix

func (s *Server) GetIxPrefix(r *http.Request, ixprefixID int) (*ent.IxPrefix, error)

GetIxPrefix maps to "GET /ix-prefixes/{id}".

func (*Server) GetIxPrefixIxLan

func (s *Server) GetIxPrefixIxLan(r *http.Request, ixprefixID int) (*ent.IxLan, error)

GetIxPrefixIxLan maps to "GET /ix-prefixes/{id}/ix-lan".

func (*Server) GetNetwork

func (s *Server) GetNetwork(r *http.Request, networkID int) (*ent.Network, error)

GetNetwork maps to "GET /networks/{id}".

func (*Server) GetNetworkFacility

func (s *Server) GetNetworkFacility(r *http.Request, networkfacilityID int) (*ent.NetworkFacility, error)

GetNetworkFacility maps to "GET /network-facilities/{id}".

func (*Server) GetNetworkFacilityFacility

func (s *Server) GetNetworkFacilityFacility(r *http.Request, networkfacilityID int) (*ent.Facility, error)

GetNetworkFacilityFacility maps to "GET /network-facilities/{id}/facility".

func (*Server) GetNetworkFacilityNetwork

func (s *Server) GetNetworkFacilityNetwork(r *http.Request, networkfacilityID int) (*ent.Network, error)

GetNetworkFacilityNetwork maps to "GET /network-facilities/{id}/network".

func (*Server) GetNetworkIxLan

func (s *Server) GetNetworkIxLan(r *http.Request, networkixlanID int) (*ent.NetworkIxLan, error)

GetNetworkIxLan maps to "GET /network-ix-lans/{id}".

func (*Server) GetNetworkIxLanIxLan

func (s *Server) GetNetworkIxLanIxLan(r *http.Request, networkixlanID int) (*ent.IxLan, error)

GetNetworkIxLanIxLan maps to "GET /network-ix-lans/{id}/ix-lan".

func (*Server) GetNetworkIxLanNetwork

func (s *Server) GetNetworkIxLanNetwork(r *http.Request, networkixlanID int) (*ent.Network, error)

GetNetworkIxLanNetwork maps to "GET /network-ix-lans/{id}/network".

func (*Server) GetNetworkOrganization

func (s *Server) GetNetworkOrganization(r *http.Request, networkID int) (*ent.Organization, error)

GetNetworkOrganization maps to "GET /networks/{id}/organization".

func (*Server) GetOrganization

func (s *Server) GetOrganization(r *http.Request, organizationID int) (*ent.Organization, error)

GetOrganization maps to "GET /organizations/{id}".

func (*Server) GetPoc

func (s *Server) GetPoc(r *http.Request, pocID int) (*ent.Poc, error)

GetPoc maps to "GET /pocs/{id}".

func (*Server) GetPocNetwork

func (s *Server) GetPocNetwork(r *http.Request, pocID int) (*ent.Network, error)

GetPocNetwork maps to "GET /pocs/{id}/network".

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns a ready-to-use http.Handler that mounts all of the necessary endpoints.

func (*Server) ListCampuFacilities

func (s *Server) ListCampuFacilities(r *http.Request, campuID int, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)

ListCampuFacilities maps to "GET /campus/{id}/facilities".

func (*Server) ListCampus

func (s *Server) ListCampus(r *http.Request, p *ListCampuParams) (*PagedResponse[ent.Campus], error)

ListCampus maps to "GET /campus".

func (*Server) ListCarrierCarrierFacilities

func (s *Server) ListCarrierCarrierFacilities(r *http.Request, carrierID int, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)

ListCarrierCarrierFacilities maps to "GET /carriers/{id}/carrier-facilities".

func (*Server) ListCarrierFacilities

func (s *Server) ListCarrierFacilities(r *http.Request, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)

ListCarrierFacilities maps to "GET /carrier-facilities".

func (*Server) ListCarriers

func (s *Server) ListCarriers(r *http.Request, p *ListCarrierParams) (*PagedResponse[ent.Carrier], error)

ListCarriers maps to "GET /carriers".

func (*Server) ListFacilities

func (s *Server) ListFacilities(r *http.Request, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)

ListFacilities maps to "GET /facilities".

func (*Server) ListFacilityCarrierFacilities

func (s *Server) ListFacilityCarrierFacilities(r *http.Request, facilityID int, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)

ListFacilityCarrierFacilities maps to "GET /facilities/{id}/carrier-facilities".

func (*Server) ListFacilityIxFacilities

func (s *Server) ListFacilityIxFacilities(r *http.Request, facilityID int, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)

ListFacilityIxFacilities maps to "GET /facilities/{id}/ix-facilities".

func (*Server) ListFacilityNetworkFacilities

func (s *Server) ListFacilityNetworkFacilities(r *http.Request, facilityID int, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)

ListFacilityNetworkFacilities maps to "GET /facilities/{id}/network-facilities".

func (*Server) ListInternetExchangeIxFacilities

func (s *Server) ListInternetExchangeIxFacilities(r *http.Request, internetexchangeID int, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)

ListInternetExchangeIxFacilities maps to "GET /internet-exchanges/{id}/ix-facilities".

func (*Server) ListInternetExchangeIxLans

func (s *Server) ListInternetExchangeIxLans(r *http.Request, internetexchangeID int, p *ListIxLanParams) (*PagedResponse[ent.IxLan], error)

ListInternetExchangeIxLans maps to "GET /internet-exchanges/{id}/ix-lans".

func (*Server) ListInternetExchanges

func (s *Server) ListInternetExchanges(r *http.Request, p *ListInternetExchangeParams) (*PagedResponse[ent.InternetExchange], error)

ListInternetExchanges maps to "GET /internet-exchanges".

func (*Server) ListIxFacilities

func (s *Server) ListIxFacilities(r *http.Request, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)

ListIxFacilities maps to "GET /ix-facilities".

func (*Server) ListIxLanIxPrefixes

func (s *Server) ListIxLanIxPrefixes(r *http.Request, ixlanID int, p *ListIxPrefixParams) (*PagedResponse[ent.IxPrefix], error)

ListIxLanIxPrefixes maps to "GET /ix-lans/{id}/ix-prefixes".

func (*Server) ListIxLanNetworkIxLans

func (s *Server) ListIxLanNetworkIxLans(r *http.Request, ixlanID int, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)

ListIxLanNetworkIxLans maps to "GET /ix-lans/{id}/network-ix-lans".

func (*Server) ListIxLans

func (s *Server) ListIxLans(r *http.Request, p *ListIxLanParams) (*PagedResponse[ent.IxLan], error)

ListIxLans maps to "GET /ix-lans".

func (*Server) ListIxPrefixes

func (s *Server) ListIxPrefixes(r *http.Request, p *ListIxPrefixParams) (*PagedResponse[ent.IxPrefix], error)

ListIxPrefixes maps to "GET /ix-prefixes".

func (*Server) ListNetworkFacilities

func (s *Server) ListNetworkFacilities(r *http.Request, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)

ListNetworkFacilities maps to "GET /network-facilities".

func (*Server) ListNetworkIxLans

func (s *Server) ListNetworkIxLans(r *http.Request, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)

ListNetworkIxLans maps to "GET /network-ix-lans".

func (*Server) ListNetworkNetworkFacilities

func (s *Server) ListNetworkNetworkFacilities(r *http.Request, networkID int, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)

ListNetworkNetworkFacilities maps to "GET /networks/{id}/network-facilities".

func (*Server) ListNetworkNetworkIxLans

func (s *Server) ListNetworkNetworkIxLans(r *http.Request, networkID int, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)

ListNetworkNetworkIxLans maps to "GET /networks/{id}/network-ix-lans".

func (*Server) ListNetworkPocs

func (s *Server) ListNetworkPocs(r *http.Request, networkID int, p *ListPocParams) (*PagedResponse[ent.Poc], error)

ListNetworkPocs maps to "GET /networks/{id}/pocs".

func (*Server) ListNetworks

func (s *Server) ListNetworks(r *http.Request, p *ListNetworkParams) (*PagedResponse[ent.Network], error)

ListNetworks maps to "GET /networks".

func (*Server) ListOrganizationCampuses

func (s *Server) ListOrganizationCampuses(r *http.Request, organizationID int, p *ListCampuParams) (*PagedResponse[ent.Campus], error)

ListOrganizationCampuses maps to "GET /organizations/{id}/campuses".

func (*Server) ListOrganizationCarriers

func (s *Server) ListOrganizationCarriers(r *http.Request, organizationID int, p *ListCarrierParams) (*PagedResponse[ent.Carrier], error)

ListOrganizationCarriers maps to "GET /organizations/{id}/carriers".

func (*Server) ListOrganizationFacilities

func (s *Server) ListOrganizationFacilities(r *http.Request, organizationID int, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)

ListOrganizationFacilities maps to "GET /organizations/{id}/facilities".

func (*Server) ListOrganizationInternetExchanges

func (s *Server) ListOrganizationInternetExchanges(r *http.Request, organizationID int, p *ListInternetExchangeParams) (*PagedResponse[ent.InternetExchange], error)

ListOrganizationInternetExchanges maps to "GET /organizations/{id}/internet-exchanges".

func (*Server) ListOrganizationNetworks

func (s *Server) ListOrganizationNetworks(r *http.Request, organizationID int, p *ListNetworkParams) (*PagedResponse[ent.Network], error)

ListOrganizationNetworks maps to "GET /organizations/{id}/networks".

func (*Server) ListOrganizations

func (s *Server) ListOrganizations(r *http.Request, p *ListOrganizationParams) (*PagedResponse[ent.Organization], error)

ListOrganizations maps to "GET /organizations".

func (*Server) ListPocs

func (s *Server) ListPocs(r *http.Request, p *ListPocParams) (*PagedResponse[ent.Poc], error)

ListPocs maps to "GET /pocs".

func (*Server) Spec

func (s *Server) Spec(w http.ResponseWriter, r *http.Request)

Spec returns the OpenAPI spec for the server implementation.

type ServerConfig

type ServerConfig struct {
	// BaseURL is similar to [ServerConfig.BasePath], however, only the path of the URL is used
	// to prefill BasePath. This is not required if BasePath is provided.
	BaseURL string

	// BasePath if provided, and the /openapi.json endpoint is enabled, will allow annotating
	// API responses with "Link" headers. See [ServerConfig.EnableLinks] for more information.
	BasePath string

	// DisableSpecHandler if set to true, will disable the /openapi.json endpoint. This will also
	// disable the embedded API reference documentation, see [ServerConfig.DisableDocs] for more
	// information.
	DisableSpecHandler bool

	// DisableSpecInjectServer if set to true, will disable the automatic injection of the
	// server URL into the spec. This only applies if [ServerConfig.BaseURL] is provided.
	DisableSpecInjectServer bool

	// DisableDocsHandler if set to true, will disable the embedded API reference documentation
	// endpoint at /docs. Use this if you want to provide your own documentation functionality.
	// This is disabled by default if [ServerConfig.DisableSpecHandler] is true.
	DisableDocsHandler bool

	// EnableLinks if set to true, will enable the "Link" response header, which can be used to hint
	// to clients about the location of the OpenAPI spec, API documentation, how to auto-paginate
	// through results, and more.
	EnableLinks bool

	// MaskErrors if set to true, will mask the error message returned to the client,
	// returning a generic error message based on the HTTP status code.
	MaskErrors bool

	// ErrorHandler is invoked when an error occurs. If not provided, the default
	// error handling logic will be used. If you want to run logic on errors, but
	// not actually handle the error yourself, you can still call [Server.DefaultErrorHandler]
	// after your logic.
	ErrorHandler func(w http.ResponseWriter, r *http.Request, op Operation, err error)

	// GetReqID returns the request ID for the given request. If not provided, the
	// default implementation will use the X-Request-Id header, otherwise an empty
	// string will be returned. If using go-chi, middleware.GetReqID will be used.
	GetReqID func(r *http.Request) string
}

type SortConfig

type SortConfig struct {
	Fields       []string
	DefaultField string
	DefaultOrder orderDirection
}

type Sorted

type Sorted struct {
	// Field is the field to sort by. Can be a standard field name (e.g. "name"), or a custom field
	// name (e.g. "pets.age.sum"). If no field is provided, the default field will be used.
	Field *string `json:"sort" form:"sort,omitempty"`

	// Order is the order to sort by. Can be either "asc" or "desc". If no order is provided, the
	// default order will be used.
	Order *orderDirection `json:"order" form:"order,omitempty"`
}

func (*Sorted) Validate

func (s *Sorted) Validate(cfg *SortConfig) error

Validate validates the sorting fields and applies any necessary defaults.

type UpdateCampuParams

type UpdateCampuParams struct {
	// FK to organization
	OrgID Option[*int] `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName Option[string] `json:"org_name,omitempty"`
	// Campus name
	Name Option[string] `json:"name"`
	// Long name
	NameLong Option[*string] `json:"name_long,omitempty"`
	// Also known as
	Aka Option[*string] `json:"aka,omitempty"`
	// Campus website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Country code
	Country Option[string] `json:"country,omitempty"`
	// City
	City Option[string] `json:"city,omitempty"`
	// Postal / ZIP code
	Zipcode Option[string] `json:"zipcode,omitempty"`
	// State or province
	State Option[string] `json:"state,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateCampuParams defines parameters for updating a Campu via a PATCH request.

func (*UpdateCampuParams) ApplyInputs

func (u *UpdateCampuParams) ApplyInputs(builder *ent.CampusUpdateOne) *ent.CampusUpdateOne

func (*UpdateCampuParams) Exec

func (c *UpdateCampuParams) Exec(ctx context.Context, builder *ent.CampusUpdateOne, query *ent.CampusQuery) (*ent.Campus, error)

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateCarrierFacilityParams

type UpdateCarrierFacilityParams struct {
	// FK to carrier
	CarrierID Option[*int] `json:"carrier_id,omitempty"`
	// FK to facility
	FacID Option[*int] `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name Option[string] `json:"name,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateCarrierFacilityParams defines parameters for updating a CarrierFacility via a PATCH request.

func (*UpdateCarrierFacilityParams) ApplyInputs

func (*UpdateCarrierFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateCarrierParams

type UpdateCarrierParams struct {
	// FK to organization
	OrgID Option[*int] `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName Option[string] `json:"org_name,omitempty"`
	// Carrier name
	Name Option[string] `json:"name"`
	// Also known as
	Aka Option[string] `json:"aka,omitempty"`
	// Long name
	NameLong Option[string] `json:"name_long,omitempty"`
	// Carrier website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Facility count (computed)
	FacCount Option[int] `json:"fac_count,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateCarrierParams defines parameters for updating a Carrier via a PATCH request.

func (*UpdateCarrierParams) ApplyInputs

func (u *UpdateCarrierParams) ApplyInputs(builder *ent.CarrierUpdateOne) *ent.CarrierUpdateOne

func (*UpdateCarrierParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateFacilityParams

type UpdateFacilityParams struct {
	// FK to organization
	OrgID Option[*int] `json:"org_id,omitempty"`
	// Organization name (computed)
	OrgName Option[string] `json:"org_name,omitempty"`
	// FK to campus
	CampusID Option[*int] `json:"campus_id,omitempty"`
	// Facility name
	Name Option[string] `json:"name"`
	// Also known as
	Aka Option[string] `json:"aka,omitempty"`
	// Long name
	NameLong Option[string] `json:"name_long,omitempty"`
	// Facility website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// CLLI code
	Clli Option[string] `json:"clli,omitempty"`
	// Rencode
	Rencode Option[string] `json:"rencode,omitempty"`
	// NPANXX
	Npanxx Option[string] `json:"npanxx,omitempty"`
	// Technical contact email
	TechEmail Option[string] `json:"tech_email,omitempty"`
	// Technical contact phone
	TechPhone Option[string] `json:"tech_phone,omitempty"`
	// Sales contact email
	SalesEmail Option[string] `json:"sales_email,omitempty"`
	// Sales contact phone
	SalesPhone Option[string] `json:"sales_phone,omitempty"`
	// Property type
	Property Option[*string] `json:"property,omitempty"`
	// Has diverse serving substations
	DiverseServingSubstations Option[*bool] `json:"diverse_serving_substations,omitempty"`
	// Available voltage services
	AvailableVoltageServices Option[[]string] `json:"available_voltage_services,omitempty"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Region / continent
	RegionContinent Option[*string] `json:"region_continent,omitempty"`
	// Status dashboard URL
	StatusDashboard Option[*string] `json:"status_dashboard,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// Network count (computed)
	NetCount Option[int] `json:"net_count,omitempty"`
	// Internet exchange count (computed)
	IxCount Option[int] `json:"ix_count,omitempty"`
	// Carrier count (computed)
	CarrierCount Option[int] `json:"carrier_count,omitempty"`
	// Address line 1
	Address1 Option[string] `json:"address1,omitempty"`
	// Address line 2
	Address2 Option[string] `json:"address2,omitempty"`
	// City
	City Option[string] `json:"city,omitempty"`
	// State or province
	State Option[string] `json:"state,omitempty"`
	// Country code
	Country Option[string] `json:"country,omitempty"`
	// Postal / ZIP code
	Zipcode Option[string] `json:"zipcode,omitempty"`
	// Suite number
	Suite Option[string] `json:"suite,omitempty"`
	// Floor
	Floor Option[string] `json:"floor,omitempty"`
	// Latitude
	Latitude Option[*float64] `json:"latitude,omitempty"`
	// Longitude
	Longitude Option[*float64] `json:"longitude,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateFacilityParams defines parameters for updating a Facility via a PATCH request.

func (*UpdateFacilityParams) ApplyInputs

func (*UpdateFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateInternetExchangeParams

type UpdateInternetExchangeParams struct {
	// FK to organization
	OrgID Option[*int] `json:"org_id,omitempty"`
	// Internet exchange name
	Name Option[string] `json:"name"`
	// Also known as
	Aka Option[string] `json:"aka,omitempty"`
	// Long name
	NameLong Option[string] `json:"name_long,omitempty"`
	// City
	City Option[string] `json:"city"`
	// Country code
	Country Option[string] `json:"country"`
	// Region / continent
	RegionContinent Option[string] `json:"region_continent"`
	// Media type
	Media Option[string] `json:"media"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Supports unicast
	ProtoUnicast Option[bool] `json:"proto_unicast"`
	// Supports multicast
	ProtoMulticast Option[bool] `json:"proto_multicast"`
	// Supports IPv6
	ProtoIpv6 Option[bool] `json:"proto_ipv6"`
	// Internet exchange website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// Statistics URL
	URLStats Option[string] `json:"url_stats,omitempty"`
	// Technical contact email
	TechEmail Option[string] `json:"tech_email,omitempty"`
	// Technical contact phone
	TechPhone Option[string] `json:"tech_phone,omitempty"`
	// Policy contact email
	PolicyEmail Option[string] `json:"policy_email,omitempty"`
	// Policy contact phone
	PolicyPhone Option[string] `json:"policy_phone,omitempty"`
	// Sales contact email
	SalesEmail Option[string] `json:"sales_email,omitempty"`
	// Sales contact phone
	SalesPhone Option[string] `json:"sales_phone,omitempty"`
	// Network count (computed)
	NetCount Option[int] `json:"net_count,omitempty"`
	// Facility count (computed)
	FacCount Option[int] `json:"fac_count,omitempty"`
	// IXF net count
	IxfNetCount Option[int] `json:"ixf_net_count"`
	// Last IXF import timestamp
	IxfLastImport Option[*time.Time] `json:"ixf_last_import,omitempty"`
	// IXF import request
	IxfImportRequest Option[*string] `json:"ixf_import_request,omitempty"`
	// IXF import request status
	IxfImportRequestStatus Option[string] `json:"ixf_import_request_status,omitempty"`
	// Service level
	ServiceLevel Option[string] `json:"service_level,omitempty"`
	// Terms
	Terms Option[string] `json:"terms,omitempty"`
	// Status dashboard URL
	StatusDashboard Option[*string] `json:"status_dashboard,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateInternetExchangeParams defines parameters for updating a InternetExchange via a PATCH request.

func (*UpdateInternetExchangeParams) ApplyInputs

func (*UpdateInternetExchangeParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateIxFacilityParams

type UpdateIxFacilityParams struct {
	// FK to internet exchange
	IxID Option[*int] `json:"ix_id,omitempty"`
	// FK to facility
	FacID Option[*int] `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name Option[string] `json:"name,omitempty"`
	// City (computed)
	City Option[string] `json:"city,omitempty"`
	// Country (computed)
	Country Option[string] `json:"country,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateIxFacilityParams defines parameters for updating a IxFacility via a PATCH request.

func (*UpdateIxFacilityParams) ApplyInputs

func (*UpdateIxFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateIxLanParams

type UpdateIxLanParams struct {
	// FK to internet exchange
	IxID Option[*int] `json:"ix_id,omitempty"`
	// IXLan name
	Name Option[string] `json:"name,omitempty"`
	// Description
	Descr Option[string] `json:"descr,omitempty"`
	// MTU
	Mtu Option[int] `json:"mtu"`
	// 802.1Q support
	Dot1qSupport Option[bool] `json:"dot1q_support"`
	// Route server ASN
	RsAsn Option[*int] `json:"rs_asn,omitempty"`
	// ARP sponge MAC address
	ArpSponge Option[*string] `json:"arp_sponge,omitempty"`
	// IXF member list URL visibility
	IxfIxpMemberListURLVisible Option[string] `json:"ixf_ixp_member_list_url_visible"`
	// IXF import enabled
	IxfIxpImportEnabled Option[bool] `json:"ixf_ixp_import_enabled"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateIxLanParams defines parameters for updating a IxLan via a PATCH request.

func (*UpdateIxLanParams) ApplyInputs

func (u *UpdateIxLanParams) ApplyInputs(builder *ent.IxLanUpdateOne) *ent.IxLanUpdateOne

func (*UpdateIxLanParams) Exec

func (c *UpdateIxLanParams) Exec(ctx context.Context, builder *ent.IxLanUpdateOne, query *ent.IxLanQuery) (*ent.IxLan, error)

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateIxPrefixParams

type UpdateIxPrefixParams struct {
	// FK to IXLan
	IxlanID Option[*int] `json:"ixlan_id,omitempty"`
	// Protocol (IPv4 or IPv6)
	Protocol Option[string] `json:"protocol"`
	// IP prefix
	Prefix Option[string] `json:"prefix"`
	// In default-free zone
	InDfz Option[bool] `json:"in_dfz"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateIxPrefixParams defines parameters for updating a IxPrefix via a PATCH request.

func (*UpdateIxPrefixParams) ApplyInputs

func (*UpdateIxPrefixParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateNetworkFacilityParams

type UpdateNetworkFacilityParams struct {
	// FK to network
	NetID Option[*int] `json:"net_id,omitempty"`
	// FK to facility
	FacID Option[*int] `json:"fac_id,omitempty"`
	// Facility name (computed)
	Name Option[string] `json:"name,omitempty"`
	// City (computed)
	City Option[string] `json:"city,omitempty"`
	// Country (computed)
	Country Option[string] `json:"country,omitempty"`
	// Local ASN at this facility
	LocalAsn Option[int] `json:"local_asn"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateNetworkFacilityParams defines parameters for updating a NetworkFacility via a PATCH request.

func (*UpdateNetworkFacilityParams) ApplyInputs

func (*UpdateNetworkFacilityParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateNetworkIxLanParams

type UpdateNetworkIxLanParams struct {
	// FK to network
	NetID Option[*int] `json:"net_id,omitempty"`
	// Internet exchange ID (computed, not an edge)
	IxID Option[int] `json:"ix_id,omitempty"`
	// FK to IXLan
	IxlanID Option[*int] `json:"ixlan_id,omitempty"`
	// Exchange name (computed)
	Name Option[string] `json:"name,omitempty"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Port speed in Mbps
	Speed Option[int] `json:"speed"`
	// Autonomous System Number
	Asn Option[int] `json:"asn"`
	// IPv4 address
	Ipaddr4 Option[*string] `json:"ipaddr4,omitempty"`
	// IPv6 address
	Ipaddr6 Option[*string] `json:"ipaddr6,omitempty"`
	// Is route server peer
	IsRsPeer Option[bool] `json:"is_rs_peer"`
	// BFD support
	BfdSupport Option[bool] `json:"bfd_support"`
	// Operational status
	Operational Option[bool] `json:"operational"`
	// Network-side facility ID
	NetSideID Option[*int] `json:"net_side_id,omitempty"`
	// IX-side facility ID
	IxSideID Option[*int] `json:"ix_side_id,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateNetworkIxLanParams defines parameters for updating a NetworkIxLan via a PATCH request.

func (*UpdateNetworkIxLanParams) ApplyInputs

func (*UpdateNetworkIxLanParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateNetworkParams

type UpdateNetworkParams struct {
	// FK to organization
	OrgID Option[*int] `json:"org_id,omitempty"`
	// Network name
	Name Option[string] `json:"name"`
	// Also known as
	Aka Option[string] `json:"aka,omitempty"`
	// Long name
	NameLong Option[string] `json:"name_long,omitempty"`
	// Network website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// Autonomous System Number
	Asn Option[int] `json:"asn"`
	// Looking glass URL
	LookingGlass Option[string] `json:"looking_glass,omitempty"`
	// Route server URL
	RouteServer Option[string] `json:"route_server,omitempty"`
	// IRR AS-SET
	IrrAsSet Option[string] `json:"irr_as_set,omitempty"`
	// Network type
	InfoType Option[string] `json:"info_type,omitempty"`
	// Network types (multi-choice)
	InfoTypes Option[[]string] `json:"info_types,omitempty"`
	// IPv4 prefix count
	InfoPrefixes4 Option[*int] `json:"info_prefixes4,omitempty"`
	// IPv6 prefix count
	InfoPrefixes6 Option[*int] `json:"info_prefixes6,omitempty"`
	// Traffic level
	InfoTraffic Option[string] `json:"info_traffic,omitempty"`
	// Traffic ratio
	InfoRatio Option[string] `json:"info_ratio,omitempty"`
	// Geographic scope
	InfoScope Option[string] `json:"info_scope,omitempty"`
	// Supports unicast
	InfoUnicast Option[bool] `json:"info_unicast"`
	// Supports multicast
	InfoMulticast Option[bool] `json:"info_multicast"`
	// Supports IPv6
	InfoIpv6 Option[bool] `json:"info_ipv6"`
	// Never via route servers
	InfoNeverViaRouteServers Option[bool] `json:"info_never_via_route_servers"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	// Peering policy URL
	PolicyURL Option[string] `json:"policy_url,omitempty"`
	// General peering policy
	PolicyGeneral Option[string] `json:"policy_general,omitempty"`
	// Peering policy locations
	PolicyLocations Option[string] `json:"policy_locations,omitempty"`
	// Peering policy ratio requirement
	PolicyRatio Option[bool] `json:"policy_ratio"`
	// Peering policy contracts
	PolicyContracts Option[string] `json:"policy_contracts,omitempty"`
	// Allow IXP update
	AllowIxpUpdate Option[bool] `json:"allow_ixp_update"`
	// Status dashboard URL
	StatusDashboard Option[*string] `json:"status_dashboard,omitempty"`
	// RIR status
	RirStatus Option[*string] `json:"rir_status,omitempty"`
	// RIR status last updated
	RirStatusUpdated Option[*time.Time] `json:"rir_status_updated,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// Internet exchange count (computed)
	IxCount Option[int] `json:"ix_count,omitempty"`
	// Facility count (computed)
	FacCount Option[int] `json:"fac_count,omitempty"`
	// Last netixlan update (computed)
	NetixlanUpdated Option[*time.Time] `json:"netixlan_updated,omitempty"`
	// Last netfac update (computed)
	NetfacUpdated Option[*time.Time] `json:"netfac_updated,omitempty"`
	// Last POC update (computed)
	PocUpdated Option[*time.Time] `json:"poc_updated,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateNetworkParams defines parameters for updating a Network via a PATCH request.

func (*UpdateNetworkParams) ApplyInputs

func (u *UpdateNetworkParams) ApplyInputs(builder *ent.NetworkUpdateOne) *ent.NetworkUpdateOne

func (*UpdateNetworkParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdateOrganizationParams

type UpdateOrganizationParams struct {
	// Organization name
	Name Option[string] `json:"name"`
	// Also known as
	Aka Option[string] `json:"aka,omitempty"`
	// Long name
	NameLong Option[string] `json:"name_long,omitempty"`
	// Organization website URL
	Website Option[string] `json:"website,omitempty"`
	// Social media links
	SocialMedia Option[[]schema.SocialMedia] `json:"social_media,omitempty"`
	// Notes
	Notes Option[string] `json:"notes,omitempty"`
	Logo Option[*string] `json:"logo,omitempty"`
	// Address line 1
	Address1 Option[string] `json:"address1,omitempty"`
	// Address line 2
	Address2 Option[string] `json:"address2,omitempty"`
	// City
	City Option[string] `json:"city,omitempty"`
	// State or province
	State Option[string] `json:"state,omitempty"`
	// Country code
	Country Option[string] `json:"country,omitempty"`
	// Postal / ZIP code
	Zipcode Option[string] `json:"zipcode,omitempty"`
	// Suite number
	Suite Option[string] `json:"suite,omitempty"`
	// Floor
	Floor Option[string] `json:"floor,omitempty"`
	// Latitude
	Latitude Option[*float64] `json:"latitude,omitempty"`
	// Longitude
	Longitude Option[*float64] `json:"longitude,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdateOrganizationParams defines parameters for updating a Organization via a PATCH request.

func (*UpdateOrganizationParams) ApplyInputs

func (*UpdateOrganizationParams) Exec

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

type UpdatePocParams

type UpdatePocParams struct {
	// FK to network
	NetID Option[*int] `json:"net_id,omitempty"`
	// Contact role
	Role Option[string] `json:"role"`
	// Visibility level
	Visible Option[string] `json:"visible"`
	// Contact name
	Name Option[string] `json:"name,omitempty"`
	// Contact phone
	Phone Option[string] `json:"phone,omitempty"`
	// Contact email
	Email Option[string] `json:"email,omitempty"`
	// Contact URL
	URL Option[string] `json:"url,omitempty"`
	// PeeringDB last update timestamp
	Updated Option[time.Time] `json:"updated"`
	// Record status
	Status Option[string] `json:"status"`
}

UpdatePocParams defines parameters for updating a Poc via a PATCH request.

func (*UpdatePocParams) ApplyInputs

func (u *UpdatePocParams) ApplyInputs(builder *ent.PocUpdateOne) *ent.PocUpdateOne

func (*UpdatePocParams) Exec

func (c *UpdatePocParams) Exec(ctx context.Context, builder *ent.PocUpdateOne, query *ent.PocQuery) (*ent.Poc, error)

Exec wraps all logic (mapping all provided values to the build), updates the entity, and does another query (using provided query as base) to get the entity, with all eager loaded edges.

Jump to

Keyboard shortcuts

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