Documentation
¶
Index ¶
- Variables
- func Bind(r *http.Request, v any) error
- func EagerLoadCampus(_query *ent.CampusQuery) *ent.CampusQuery
- func EagerLoadCarrier(_query *ent.CarrierQuery) *ent.CarrierQuery
- func EagerLoadCarrierFacility(_query *ent.CarrierFacilityQuery) *ent.CarrierFacilityQuery
- func EagerLoadFacility(_query *ent.FacilityQuery) *ent.FacilityQuery
- func EagerLoadInternetExchange(_query *ent.InternetExchangeQuery) *ent.InternetExchangeQuery
- func EagerLoadIxFacility(_query *ent.IxFacilityQuery) *ent.IxFacilityQuery
- func EagerLoadIxLan(_query *ent.IxLanQuery) *ent.IxLanQuery
- func EagerLoadIxPrefix(_query *ent.IxPrefixQuery) *ent.IxPrefixQuery
- func EagerLoadNetwork(_query *ent.NetworkQuery) *ent.NetworkQuery
- func EagerLoadNetworkFacility(_query *ent.NetworkFacilityQuery) *ent.NetworkFacilityQuery
- func EagerLoadNetworkIxLan(_query *ent.NetworkIxLanQuery) *ent.NetworkIxLanQuery
- func EagerLoadOrganization(_query *ent.OrganizationQuery) *ent.OrganizationQuery
- func EagerLoadPoc(_query *ent.PocQuery) *ent.PocQuery
- func IsBadRequest(err error) bool
- func IsEndpointNotFound(err error) bool
- func IsInvalidID(err error) bool
- func IsMethodNotAllowed(err error) bool
- func JSON(w http.ResponseWriter, r *http.Request, _status int, v any)
- func Req[Resp any](s *Server, _op Operation, _fn func(*http.Request) (*Resp, error)) http.HandlerFunc
- func ReqID[Resp, I any](s *Server, _op Operation, _fn func(*http.Request, I) (*Resp, error)) http.HandlerFunc
- func ReqIDParam[Params, Resp, I any](s *Server, _op Operation, _fn func(*http.Request, I, *Params) (*Resp, error)) http.HandlerFunc
- func ReqParam[Params, Resp any](s *Server, _op Operation, _fn func(*http.Request, *Params) (*Resp, error)) http.HandlerFunc
- func UseEntContext(_db *ent.Client) func(_next http.Handler) http.Handler
- type ErrBadRequest
- type ErrInvalidID
- type ErrorResponse
- type FilterOperation
- type Filtered
- type Links
- type ListCampusParams
- type ListCarrierFacilityParams
- func (l *ListCarrierFacilityParams) ApplySorting(_query *ent.CarrierFacilityQuery) error
- func (l *ListCarrierFacilityParams) Exec(ctx context.Context, _query *ent.CarrierFacilityQuery) (_results *PagedResponse[ent.CarrierFacility], err error)
- func (l *ListCarrierFacilityParams) FilterPredicates() (predicate.CarrierFacility, error)
- type ListCarrierParams
- type ListFacilityParams
- type ListInternetExchangeParams
- func (l *ListInternetExchangeParams) ApplySorting(_query *ent.InternetExchangeQuery) error
- func (l *ListInternetExchangeParams) Exec(ctx context.Context, _query *ent.InternetExchangeQuery) (_results *PagedResponse[ent.InternetExchange], err error)
- func (l *ListInternetExchangeParams) FilterPredicates() (predicate.InternetExchange, error)
- type ListIxFacilityParams
- type ListIxLanParams
- type ListIxPrefixParams
- type ListNetworkFacilityParams
- func (l *ListNetworkFacilityParams) ApplySorting(_query *ent.NetworkFacilityQuery) error
- func (l *ListNetworkFacilityParams) Exec(ctx context.Context, _query *ent.NetworkFacilityQuery) (_results *PagedResponse[ent.NetworkFacility], err error)
- func (l *ListNetworkFacilityParams) FilterPredicates() (predicate.NetworkFacility, error)
- type ListNetworkIxLanParams
- func (l *ListNetworkIxLanParams) ApplySorting(_query *ent.NetworkIxLanQuery) error
- func (l *ListNetworkIxLanParams) Exec(ctx context.Context, _query *ent.NetworkIxLanQuery) (_results *PagedResponse[ent.NetworkIxLan], err error)
- func (l *ListNetworkIxLanParams) FilterPredicates() (predicate.NetworkIxLan, error)
- type ListNetworkParams
- type ListOrganizationParams
- func (l *ListOrganizationParams) ApplySorting(_query *ent.OrganizationQuery) error
- func (l *ListOrganizationParams) Exec(ctx context.Context, _query *ent.OrganizationQuery) (_results *PagedResponse[ent.Organization], err error)
- func (l *ListOrganizationParams) FilterPredicates() (predicate.Organization, error)
- type ListPocParams
- type M
- type Operation
- type Option
- func (o Option[T]) Get() (T, bool)
- func (o Option[T]) MarshalJSON() ([]byte, error)
- func (o Option[T]) MarshalText() ([]byte, error)
- func (o Option[T]) OrElse(_fallback T) T
- func (o Option[T]) OrEmpty() T
- func (o Option[T]) Present() bool
- func (o Option[T]) Ptr() *T
- func (o *Option[T]) UnmarshalJSON(b []byte) error
- func (o *Option[T]) UnmarshalText(_data []byte) error
- type PagableQuery
- type PageConfig
- type PagedResponse
- type Paginated
- type Server
- func (s *Server) DefaultErrorHandler(w http.ResponseWriter, r *http.Request, _op Operation, err error)
- func (s *Server) Docs(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetCampus(r *http.Request, campusID int) (*ent.Campus, error)
- func (s *Server) GetCampusOrganization(r *http.Request, campusID int) (*ent.Organization, error)
- func (s *Server) GetCarrier(r *http.Request, carrierID int) (*ent.Carrier, error)
- func (s *Server) GetCarrierFacility(r *http.Request, carrierfacilityID int) (*ent.CarrierFacility, error)
- func (s *Server) GetCarrierFacilityCarrier(r *http.Request, carrierfacilityID int) (*ent.Carrier, error)
- func (s *Server) GetCarrierFacilityFacility(r *http.Request, carrierfacilityID int) (*ent.Facility, error)
- func (s *Server) GetCarrierOrganization(r *http.Request, carrierID int) (*ent.Organization, error)
- func (s *Server) GetFacility(r *http.Request, facilityID int) (*ent.Facility, error)
- func (s *Server) GetFacilityCampus(r *http.Request, facilityID int) (*ent.Campus, error)
- func (s *Server) GetFacilityOrganization(r *http.Request, facilityID int) (*ent.Organization, error)
- func (s *Server) GetInternetExchange(r *http.Request, internetexchangeID int) (*ent.InternetExchange, error)
- func (s *Server) GetInternetExchangeOrganization(r *http.Request, internetexchangeID int) (*ent.Organization, error)
- func (s *Server) GetIxFacility(r *http.Request, ixfacilityID int) (*ent.IxFacility, error)
- func (s *Server) GetIxFacilityFacility(r *http.Request, ixfacilityID int) (*ent.Facility, error)
- func (s *Server) GetIxFacilityInternetExchange(r *http.Request, ixfacilityID int) (*ent.InternetExchange, error)
- func (s *Server) GetIxLan(r *http.Request, ixlanID int) (*ent.IxLan, error)
- func (s *Server) GetIxLanInternetExchange(r *http.Request, ixlanID int) (*ent.InternetExchange, error)
- func (s *Server) GetIxPrefix(r *http.Request, ixprefixID int) (*ent.IxPrefix, error)
- func (s *Server) GetIxPrefixIxLan(r *http.Request, ixprefixID int) (*ent.IxLan, error)
- func (s *Server) GetNetwork(r *http.Request, networkID int) (*ent.Network, error)
- func (s *Server) GetNetworkFacility(r *http.Request, networkfacilityID int) (*ent.NetworkFacility, error)
- func (s *Server) GetNetworkFacilityFacility(r *http.Request, networkfacilityID int) (*ent.Facility, error)
- func (s *Server) GetNetworkFacilityNetwork(r *http.Request, networkfacilityID int) (*ent.Network, error)
- func (s *Server) GetNetworkIxLan(r *http.Request, networkixlanID int) (*ent.NetworkIxLan, error)
- func (s *Server) GetNetworkIxLanIxLan(r *http.Request, networkixlanID int) (*ent.IxLan, error)
- func (s *Server) GetNetworkIxLanNetwork(r *http.Request, networkixlanID int) (*ent.Network, error)
- func (s *Server) GetNetworkOrganization(r *http.Request, networkID int) (*ent.Organization, error)
- func (s *Server) GetOrganization(r *http.Request, organizationID int) (*ent.Organization, error)
- func (s *Server) GetPoc(r *http.Request, pocID int) (*ent.Poc, error)
- func (s *Server) GetPocNetwork(r *http.Request, pocID int) (*ent.Network, error)
- func (s *Server) Handler() http.Handler
- func (s *Server) ListCampus(r *http.Request, p *ListCampusParams) (*PagedResponse[ent.Campus], error)
- func (s *Server) ListCampusFacilities(r *http.Request, campusID int, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)
- func (s *Server) ListCarrierCarrierFacilities(r *http.Request, carrierID int, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)
- func (s *Server) ListCarrierFacilities(r *http.Request, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)
- func (s *Server) ListCarriers(r *http.Request, p *ListCarrierParams) (*PagedResponse[ent.Carrier], error)
- func (s *Server) ListFacilities(r *http.Request, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)
- func (s *Server) ListFacilityCarrierFacilities(r *http.Request, facilityID int, p *ListCarrierFacilityParams) (*PagedResponse[ent.CarrierFacility], error)
- func (s *Server) ListFacilityIxFacilities(r *http.Request, facilityID int, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)
- func (s *Server) ListFacilityNetworkFacilities(r *http.Request, facilityID int, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)
- func (s *Server) ListInternetExchangeIxFacilities(r *http.Request, internetexchangeID int, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)
- func (s *Server) ListInternetExchangeIxLans(r *http.Request, internetexchangeID int, p *ListIxLanParams) (*PagedResponse[ent.IxLan], error)
- func (s *Server) ListInternetExchanges(r *http.Request, p *ListInternetExchangeParams) (*PagedResponse[ent.InternetExchange], error)
- func (s *Server) ListIxFacilities(r *http.Request, p *ListIxFacilityParams) (*PagedResponse[ent.IxFacility], error)
- func (s *Server) ListIxLanIxPrefixes(r *http.Request, ixlanID int, p *ListIxPrefixParams) (*PagedResponse[ent.IxPrefix], error)
- func (s *Server) ListIxLanNetworkIxLans(r *http.Request, ixlanID int, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)
- func (s *Server) ListIxLans(r *http.Request, p *ListIxLanParams) (*PagedResponse[ent.IxLan], error)
- func (s *Server) ListIxPrefixes(r *http.Request, p *ListIxPrefixParams) (*PagedResponse[ent.IxPrefix], error)
- func (s *Server) ListNetworkFacilities(r *http.Request, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)
- func (s *Server) ListNetworkIxLans(r *http.Request, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)
- func (s *Server) ListNetworkNetworkFacilities(r *http.Request, networkID int, p *ListNetworkFacilityParams) (*PagedResponse[ent.NetworkFacility], error)
- func (s *Server) ListNetworkNetworkIxLans(r *http.Request, networkID int, p *ListNetworkIxLanParams) (*PagedResponse[ent.NetworkIxLan], error)
- func (s *Server) ListNetworkPocs(r *http.Request, networkID int, p *ListPocParams) (*PagedResponse[ent.Poc], error)
- func (s *Server) ListNetworks(r *http.Request, p *ListNetworkParams) (*PagedResponse[ent.Network], error)
- func (s *Server) ListOrganizationCampuses(r *http.Request, organizationID int, p *ListCampusParams) (*PagedResponse[ent.Campus], error)
- func (s *Server) ListOrganizationCarriers(r *http.Request, organizationID int, p *ListCarrierParams) (*PagedResponse[ent.Carrier], error)
- func (s *Server) ListOrganizationFacilities(r *http.Request, organizationID int, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)
- func (s *Server) ListOrganizationInternetExchanges(r *http.Request, organizationID int, p *ListInternetExchangeParams) (*PagedResponse[ent.InternetExchange], error)
- func (s *Server) ListOrganizationNetworks(r *http.Request, organizationID int, p *ListNetworkParams) (*PagedResponse[ent.Network], error)
- func (s *Server) ListOrganizations(r *http.Request, p *ListOrganizationParams) (*PagedResponse[ent.Organization], error)
- func (s *Server) ListPocs(r *http.Request, p *ListPocParams) (*PagedResponse[ent.Poc], error)
- func (s *Server) Spec(w http.ResponseWriter, r *http.Request)
- type ServerConfig
- type SortConfig
- type Sorted
Constants ¶
This section is empty.
Variables ¶
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, } // CampusPageConfig defines the page configuration for LIST-related endpoints // for Campus. CampusPageConfig = &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, } )
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 )
var ( // OrderDirections are the allowed order directions that can be provided. OrderDirections = []orderDirection{orderAsc, orderDesc} // CampusSortConfig defines the default sort configuration for Campus. CampusSortConfig = &SortConfig{ Fields: []string{ "facilities.count", "id", "organization.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // CarrierSortConfig defines the default sort configuration for Carrier. CarrierSortConfig = &SortConfig{ Fields: []string{ "carrier_facilities.count", "id", "organization.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // CarrierFacilitySortConfig defines the default sort configuration for CarrierFacility. CarrierFacilitySortConfig = &SortConfig{ Fields: []string{ "carrier.updated", "facility.updated", "id", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // FacilitySortConfig defines the default sort configuration for Facility. FacilitySortConfig = &SortConfig{ Fields: []string{ "campus.updated", "carrier_facilities.count", "id", "ix_facilities.count", "network_facilities.count", "organization.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // InternetExchangeSortConfig defines the default sort configuration for InternetExchange. InternetExchangeSortConfig = &SortConfig{ Fields: []string{ "id", "ix_facilities.count", "ix_lans.count", "organization.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // IxFacilitySortConfig defines the default sort configuration for IxFacility. IxFacilitySortConfig = &SortConfig{ Fields: []string{ "facility.updated", "id", "internet_exchange.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // IxLanSortConfig defines the default sort configuration for IxLan. IxLanSortConfig = &SortConfig{ Fields: []string{ "id", "internet_exchange.updated", "ix_prefixes.count", "network_ix_lans.count", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // IxPrefixSortConfig defines the default sort configuration for IxPrefix. IxPrefixSortConfig = &SortConfig{ Fields: []string{ "id", "ix_lan.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // NetworkSortConfig defines the default sort configuration for Network. NetworkSortConfig = &SortConfig{ Fields: []string{ "id", "network_facilities.count", "network_ix_lans.count", "organization.updated", "pocs.count", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // NetworkFacilitySortConfig defines the default sort configuration for NetworkFacility. NetworkFacilitySortConfig = &SortConfig{ Fields: []string{ "facility.updated", "id", "network.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // NetworkIxLanSortConfig defines the default sort configuration for NetworkIxLan. NetworkIxLanSortConfig = &SortConfig{ Fields: []string{ "id", "ix_lan.updated", "network.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // 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", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } // PocSortConfig defines the default sort configuration for Poc. PocSortConfig = &SortConfig{ Fields: []string{ "id", "network.updated", "random", "updated", }, DefaultField: "updated", DefaultOrder: "desc", } )
var ErrEndpointNotFound = errors.New("endpoint not found")
var ErrMethodNotAllowed = errors.New("method not allowed")
var ( // FilterOperations defines the available filter methods. FilterOperations = []FilterOperation{FilterOperationAnd, FilterOperationOr} )
var OpenAPI []byte // OpenAPI contains the JSON schema of the API.
Functions ¶
func Bind ¶
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 EagerLoadCampus ¶ added in v1.5.0
func EagerLoadCampus(_query *ent.CampusQuery) *ent.CampusQuery
EagerLoadCampus eager-loads the edges of a Campus 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 ¶
EagerLoadPoc eager-loads the edges of a Poc entity, if any edges were requested to be eager-loaded, based off associated annotations.
func IsBadRequest ¶
IsBadRequest returns true if the unwrapped/underlying error is of type ErrBadRequest.
func IsEndpointNotFound ¶
IsEndpointNotFound returns true if the unwrapped/underlying error is of type ErrEndpointNotFound.
func IsInvalidID ¶
IsInvalidID returns true if the unwrapped/underlying error is of type ErrInvalidID.
func IsMethodNotAllowed ¶
IsMethodNotAllowed returns true if the unwrapped/underlying error is of type ErrMethodNotAllowed.
func JSON ¶
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 ¶
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 ErrBadRequest ¶
type ErrBadRequest struct {
Err error
}
func (ErrBadRequest) Error ¶
func (e ErrBadRequest) Error() string
func (ErrBadRequest) Unwrap ¶
func (e ErrBadRequest) Unwrap() error
type ErrInvalidID ¶
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 ¶
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 ¶
Links represents a set of linkable-relationsips that can be represented through the "Link" header. Note that all urls must be url-encoded already.
type ListCampusParams ¶ added in v1.5.0
type ListCampusParams 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 "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 "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 "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 "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 "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"`
}
ListCampusParams defines parameters for listing Campus via a GET request.
func (*ListCampusParams) ApplySorting ¶ added in v1.5.0
func (l *ListCampusParams) ApplySorting(_query *ent.CampusQuery) error
ApplySorting applies sorting to the query based on the provided sort and order fields.
func (*ListCampusParams) Exec ¶ added in v1.5.0
func (l *ListCampusParams) 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 (*ListCampusParams) FilterPredicates ¶ added in v1.5.0
func (l *ListCampusParams) FilterPredicates() (predicate.Campus, error)
FilterPredicates returns the predicates for filter-related parameters in Campus.
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 ¶
func (l *ListCarrierFacilityParams) Exec(ctx context.Context, _query *ent.CarrierFacilityQuery) (_results *PagedResponse[ent.CarrierFacility], err error)
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 "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" 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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 null/nil.
InternetExchangeCityIsNil *bool `form:"city.null,omitempty" json:"internet_exchange_city_is_nil,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 null/nil.
InternetExchangeCountryIsNil *bool `form:"country.null,omitempty" json:"internet_exchange_country_is_nil,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 "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 "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 "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 ¶
func (l *ListInternetExchangeParams) ApplySorting(_query *ent.InternetExchangeQuery) error
ApplySorting applies sorting to the query based on the provided sort and order fields.
func (*ListInternetExchangeParams) Exec ¶
func (l *ListInternetExchangeParams) Exec(ctx context.Context, _query *ent.InternetExchangeQuery) (_results *PagedResponse[ent.InternetExchange], err error)
Exec wraps all logic (filtering, sorting, pagination, eager loading) and executes all necessary queries, returning the results.
func (*ListInternetExchangeParams) FilterPredicates ¶
func (l *ListInternetExchangeParams) FilterPredicates() (predicate.InternetExchange, error)
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 "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 "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 "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 ¶
func (l *ListIxFacilityParams) Exec(ctx context.Context, _query *ent.IxFacilityQuery) (_results *PagedResponse[ent.IxFacility], err error)
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 "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 "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 "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 "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 "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 "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 ¶
func (l *ListNetworkFacilityParams) Exec(ctx context.Context, _query *ent.NetworkFacilityQuery) (_results *PagedResponse[ent.NetworkFacility], err error)
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 "ix_side_id" to be equal to the provided value.
NetworkIxLanIxSideIDEQ *int `form:"ixSideID.eq,omitempty" json:"network_ix_lan_ix_side_ideq,omitempty"`
// Filters field "ix_side_id" to be not equal to the provided value.
NetworkIxLanIxSideIDNEQ *int `form:"ixSideID.neq,omitempty" json:"network_ix_lan_ix_side_idneq,omitempty"`
// Filters field "ix_side_id" to be greater than the provided value.
NetworkIxLanIxSideIDGT *int `form:"ixSideID.gt,omitempty" json:"network_ix_lan_ix_side_idgt,omitempty"`
// Filters field "ix_side_id" to be greater than or equal to the provided value.
NetworkIxLanIxSideIDGTE *int `form:"ixSideID.gte,omitempty" json:"network_ix_lan_ix_side_idgte,omitempty"`
// Filters field "ix_side_id" to be less than the provided value.
NetworkIxLanIxSideIDLT *int `form:"ixSideID.lt,omitempty" json:"network_ix_lan_ix_side_idlt,omitempty"`
// Filters field "ix_side_id" to be less than or equal to the provided value.
NetworkIxLanIxSideIDLTE *int `form:"ixSideID.lte,omitempty" json:"network_ix_lan_ix_side_idlte,omitempty"`
// Filters field "ix_side_id" to be within the provided values.
NetworkIxLanIxSideIDIn []int `form:"ixSideID.in,omitempty" json:"network_ix_lan_ix_side_id_in,omitempty"`
// Filters field "ix_side_id" to be not within the provided values.
NetworkIxLanIxSideIDNotIn []int `form:"ixSideID.notIn,omitempty" json:"network_ix_lan_ix_side_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 "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 "net_side_id" to be equal to the provided value.
NetworkIxLanNetSideIDEQ *int `form:"netSideID.eq,omitempty" json:"network_ix_lan_net_side_ideq,omitempty"`
// Filters field "net_side_id" to be not equal to the provided value.
NetworkIxLanNetSideIDNEQ *int `form:"netSideID.neq,omitempty" json:"network_ix_lan_net_side_idneq,omitempty"`
// Filters field "net_side_id" to be greater than the provided value.
NetworkIxLanNetSideIDGT *int `form:"netSideID.gt,omitempty" json:"network_ix_lan_net_side_idgt,omitempty"`
// Filters field "net_side_id" to be greater than or equal to the provided value.
NetworkIxLanNetSideIDGTE *int `form:"netSideID.gte,omitempty" json:"network_ix_lan_net_side_idgte,omitempty"`
// Filters field "net_side_id" to be less than the provided value.
NetworkIxLanNetSideIDLT *int `form:"netSideID.lt,omitempty" json:"network_ix_lan_net_side_idlt,omitempty"`
// Filters field "net_side_id" to be less than or equal to the provided value.
NetworkIxLanNetSideIDLTE *int `form:"netSideID.lte,omitempty" json:"network_ix_lan_net_side_idlte,omitempty"`
// Filters field "net_side_id" to be within the provided values.
NetworkIxLanNetSideIDIn []int `form:"netSideID.in,omitempty" json:"network_ix_lan_net_side_id_in,omitempty"`
// Filters field "net_side_id" to be not within the provided values.
NetworkIxLanNetSideIDNotIn []int `form:"netSideID.notIn,omitempty" json:"network_ix_lan_net_side_id_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 "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 "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 ¶
func (l *ListNetworkIxLanParams) Exec(ctx context.Context, _query *ent.NetworkIxLanQuery) (_results *PagedResponse[ent.NetworkIxLan], err error)
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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 ¶
func (l *ListOrganizationParams) Exec(ctx context.Context, _query *ent.OrganizationQuery) (_results *PagedResponse[ent.Organization], err error)
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 "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 "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 "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 null/nil.
PocVisibleIsNil *bool `form:"visible.null,omitempty" json:"poc_visible_is_nil,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 "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 ¶
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]) MarshalJSON ¶
MarshalJSON encodes Option to JSON.
func (Option[T]) MarshalText ¶
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]) UnmarshalJSON ¶
UnmarshalJSON decodes Option from JSON.
func (*Option[T]) UnmarshalText ¶
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 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) GetCampusOrganization ¶ added in v1.5.0
GetCampusOrganization maps to "GET /campuses/{id}/organization".
func (*Server) GetCarrier ¶
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 ¶
GetCarrierOrganization maps to "GET /carriers/{id}/organization".
func (*Server) GetFacility ¶
GetFacility maps to "GET /facilities/{id}".
func (*Server) GetFacilityCampus ¶ added in v1.5.0
GetFacilityCampus 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 ¶
GetIxFacility maps to "GET /ix-facilities/{id}".
func (*Server) GetIxFacilityFacility ¶
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) 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 ¶
GetIxPrefix maps to "GET /ix-prefixes/{id}".
func (*Server) GetIxPrefixIxLan ¶
GetIxPrefixIxLan maps to "GET /ix-prefixes/{id}/ix-lan".
func (*Server) GetNetwork ¶
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 ¶
GetNetworkIxLan maps to "GET /network-ix-lans/{id}".
func (*Server) GetNetworkIxLanIxLan ¶
GetNetworkIxLanIxLan maps to "GET /network-ix-lans/{id}/ix-lan".
func (*Server) GetNetworkIxLanNetwork ¶
GetNetworkIxLanNetwork maps to "GET /network-ix-lans/{id}/network".
func (*Server) GetNetworkOrganization ¶
GetNetworkOrganization maps to "GET /networks/{id}/organization".
func (*Server) GetOrganization ¶
GetOrganization maps to "GET /organizations/{id}".
func (*Server) GetPocNetwork ¶
GetPocNetwork maps to "GET /pocs/{id}/network".
func (*Server) Handler ¶
Handler returns a ready-to-use http.Handler that mounts all of the necessary endpoints.
func (*Server) ListCampus ¶
func (s *Server) ListCampus(r *http.Request, p *ListCampusParams) (*PagedResponse[ent.Campus], error)
ListCampus maps to "GET /campuses".
func (*Server) ListCampusFacilities ¶ added in v1.5.0
func (s *Server) ListCampusFacilities(r *http.Request, campusID int, p *ListFacilityParams) (*PagedResponse[ent.Facility], error)
ListCampusFacilities maps to "GET /campuses/{id}/facilities".
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 *ListCampusParams) (*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".
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 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.