Documentation
¶
Overview ¶
Package grpcserver provides ConnectRPC service handlers for the PeeringDB gRPC API. Each handler implements the generated service interface and queries the ent database layer.
Index ¶
- type CampusService
- type CarrierFacilityService
- func (s *CarrierFacilityService) GetCarrierFacility(ctx context.Context, req *pb.GetCarrierFacilityRequest) (*pb.GetCarrierFacilityResponse, error)
- func (s *CarrierFacilityService) ListCarrierFacilities(ctx context.Context, req *pb.ListCarrierFacilitiesRequest) (*pb.ListCarrierFacilitiesResponse, error)
- type CarrierService
- type FacilityService
- type InternetExchangeService
- func (s *InternetExchangeService) GetInternetExchange(ctx context.Context, req *pb.GetInternetExchangeRequest) (*pb.GetInternetExchangeResponse, error)
- func (s *InternetExchangeService) ListInternetExchanges(ctx context.Context, req *pb.ListInternetExchangesRequest) (*pb.ListInternetExchangesResponse, error)
- type IxFacilityService
- type IxLanService
- type IxPrefixService
- type NetworkFacilityService
- func (s *NetworkFacilityService) GetNetworkFacility(ctx context.Context, req *pb.GetNetworkFacilityRequest) (*pb.GetNetworkFacilityResponse, error)
- func (s *NetworkFacilityService) ListNetworkFacilities(ctx context.Context, req *pb.ListNetworkFacilitiesRequest) (*pb.ListNetworkFacilitiesResponse, error)
- type NetworkIxLanService
- type NetworkService
- type OrganizationService
- type PocService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CampusService ¶
CampusService implements the peeringdb.v1.CampusService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*CampusService) GetCampus ¶
func (s *CampusService) GetCampus(ctx context.Context, req *pb.GetCampusRequest) (*pb.GetCampusResponse, error)
GetCampus returns a single campus by ID. Returns NOT_FOUND if the campus does not exist.
func (*CampusService) ListCampuses ¶
func (s *CampusService) ListCampuses(ctx context.Context, req *pb.ListCampusesRequest) (*pb.ListCampusesResponse, error)
ListCampuses returns a paginated list of campuses ordered by ID ascending. Supports page_size, page_token, and optional filter fields (name, country, city, status, org_id). Multiple filters combine with AND logic.
type CarrierFacilityService ¶
CarrierFacilityService implements the peeringdb.v1.CarrierFacilityService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*CarrierFacilityService) GetCarrierFacility ¶
func (s *CarrierFacilityService) GetCarrierFacility(ctx context.Context, req *pb.GetCarrierFacilityRequest) (*pb.GetCarrierFacilityResponse, error)
GetCarrierFacility returns a single carrier facility by ID. Returns NOT_FOUND if the carrier facility does not exist.
func (*CarrierFacilityService) ListCarrierFacilities ¶
func (s *CarrierFacilityService) ListCarrierFacilities(ctx context.Context, req *pb.ListCarrierFacilitiesRequest) (*pb.ListCarrierFacilitiesResponse, error)
ListCarrierFacilities returns a paginated list of carrier facilities ordered by ID ascending. Supports page_size, page_token, and optional filter fields (carrier_id, fac_id, status). Multiple filters combine with AND logic.
type CarrierService ¶
CarrierService implements the peeringdb.v1.CarrierService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*CarrierService) GetCarrier ¶
func (s *CarrierService) GetCarrier(ctx context.Context, req *pb.GetCarrierRequest) (*pb.GetCarrierResponse, error)
GetCarrier returns a single carrier by ID. Returns NOT_FOUND if the carrier does not exist.
func (*CarrierService) ListCarriers ¶
func (s *CarrierService) ListCarriers(ctx context.Context, req *pb.ListCarriersRequest) (*pb.ListCarriersResponse, error)
ListCarriers returns a paginated list of carriers ordered by ID ascending. Supports page_size, page_token, and optional filter fields (name, status, org_id). Multiple filters combine with AND logic.
type FacilityService ¶
FacilityService implements the peeringdb.v1.FacilityService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*FacilityService) GetFacility ¶
func (s *FacilityService) GetFacility(ctx context.Context, req *pb.GetFacilityRequest) (*pb.GetFacilityResponse, error)
GetFacility returns a single facility by ID. Returns NOT_FOUND if the facility does not exist.
func (*FacilityService) ListFacilities ¶
func (s *FacilityService) ListFacilities(ctx context.Context, req *pb.ListFacilitiesRequest) (*pb.ListFacilitiesResponse, error)
ListFacilities returns a paginated list of facilities ordered by ID ascending. Supports page_size, page_token, and optional filter fields (name, country, city, status, org_id). Multiple filters combine with AND logic.
type InternetExchangeService ¶
InternetExchangeService implements the peeringdb.v1.InternetExchangeService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*InternetExchangeService) GetInternetExchange ¶
func (s *InternetExchangeService) GetInternetExchange(ctx context.Context, req *pb.GetInternetExchangeRequest) (*pb.GetInternetExchangeResponse, error)
GetInternetExchange returns a single internet exchange by ID. Returns NOT_FOUND if the internet exchange does not exist.
func (*InternetExchangeService) ListInternetExchanges ¶
func (s *InternetExchangeService) ListInternetExchanges(ctx context.Context, req *pb.ListInternetExchangesRequest) (*pb.ListInternetExchangesResponse, error)
ListInternetExchanges returns a paginated list of internet exchanges ordered by ID ascending. Supports page_size, page_token, and optional filter fields (name, country, city, status, org_id). Multiple filters combine with AND logic.
type IxFacilityService ¶
IxFacilityService implements the peeringdb.v1.IxFacilityService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*IxFacilityService) GetIxFacility ¶
func (s *IxFacilityService) GetIxFacility(ctx context.Context, req *pb.GetIxFacilityRequest) (*pb.GetIxFacilityResponse, error)
GetIxFacility returns a single IX facility by ID. Returns NOT_FOUND if the IX facility does not exist.
func (*IxFacilityService) ListIxFacilities ¶
func (s *IxFacilityService) ListIxFacilities(ctx context.Context, req *pb.ListIxFacilitiesRequest) (*pb.ListIxFacilitiesResponse, error)
ListIxFacilities returns a paginated list of IX facilities ordered by ID ascending. Supports page_size, page_token, and optional filter fields (ix_id, fac_id, country, city, status). Multiple filters combine with AND logic.
type IxLanService ¶
IxLanService implements the peeringdb.v1.IxLanService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*IxLanService) GetIxLan ¶
func (s *IxLanService) GetIxLan(ctx context.Context, req *pb.GetIxLanRequest) (*pb.GetIxLanResponse, error)
GetIxLan returns a single IX LAN by ID. Returns NOT_FOUND if the IX LAN does not exist.
func (*IxLanService) ListIxLans ¶
func (s *IxLanService) ListIxLans(ctx context.Context, req *pb.ListIxLansRequest) (*pb.ListIxLansResponse, error)
ListIxLans returns a paginated list of IX LANs ordered by ID ascending. Supports page_size, page_token, and optional filter fields (ix_id, name, status). Multiple filters combine with AND logic.
type IxPrefixService ¶
IxPrefixService implements the peeringdb.v1.IxPrefixService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*IxPrefixService) GetIxPrefix ¶
func (s *IxPrefixService) GetIxPrefix(ctx context.Context, req *pb.GetIxPrefixRequest) (*pb.GetIxPrefixResponse, error)
GetIxPrefix returns a single IX prefix by ID. Returns NOT_FOUND if the IX prefix does not exist.
func (*IxPrefixService) ListIxPrefixes ¶
func (s *IxPrefixService) ListIxPrefixes(ctx context.Context, req *pb.ListIxPrefixesRequest) (*pb.ListIxPrefixesResponse, error)
ListIxPrefixes returns a paginated list of IX prefixes ordered by ID ascending. Supports page_size, page_token, and optional filter fields (ixlan_id, protocol, status). Multiple filters combine with AND logic.
type NetworkFacilityService ¶
NetworkFacilityService implements the peeringdb.v1.NetworkFacilityService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*NetworkFacilityService) GetNetworkFacility ¶
func (s *NetworkFacilityService) GetNetworkFacility(ctx context.Context, req *pb.GetNetworkFacilityRequest) (*pb.GetNetworkFacilityResponse, error)
GetNetworkFacility returns a single network facility by ID. Returns NOT_FOUND if the network facility does not exist.
func (*NetworkFacilityService) ListNetworkFacilities ¶
func (s *NetworkFacilityService) ListNetworkFacilities(ctx context.Context, req *pb.ListNetworkFacilitiesRequest) (*pb.ListNetworkFacilitiesResponse, error)
ListNetworkFacilities returns a paginated list of network facilities ordered by ID ascending. Supports page_size, page_token, and optional filter fields (net_id, fac_id, country, city, status). Multiple filters combine with AND logic.
type NetworkIxLanService ¶
NetworkIxLanService implements the peeringdb.v1.NetworkIxLanService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*NetworkIxLanService) GetNetworkIxLan ¶
func (s *NetworkIxLanService) GetNetworkIxLan(ctx context.Context, req *pb.GetNetworkIxLanRequest) (*pb.GetNetworkIxLanResponse, error)
GetNetworkIxLan returns a single network IX LAN by ID. Returns NOT_FOUND if the network IX LAN does not exist.
func (*NetworkIxLanService) ListNetworkIxLans ¶
func (s *NetworkIxLanService) ListNetworkIxLans(ctx context.Context, req *pb.ListNetworkIxLansRequest) (*pb.ListNetworkIxLansResponse, error)
ListNetworkIxLans returns a paginated list of network IX LANs ordered by ID ascending. Supports page_size, page_token, and optional filter fields (net_id, ixlan_id, asn, name, status). Multiple filters combine with AND logic.
type NetworkService ¶
NetworkService implements the peeringdb.v1.NetworkService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*NetworkService) GetNetwork ¶
func (s *NetworkService) GetNetwork(ctx context.Context, req *pb.GetNetworkRequest) (*pb.GetNetworkResponse, error)
GetNetwork returns a single network by ID. Returns NOT_FOUND if the network does not exist.
func (*NetworkService) ListNetworks ¶
func (s *NetworkService) ListNetworks(ctx context.Context, req *pb.ListNetworksRequest) (*pb.ListNetworksResponse, error)
ListNetworks returns a paginated list of networks ordered by ID ascending. Supports page_size, page_token, and optional filter fields (asn, name, status, org_id). Multiple filters combine with AND logic. Name uses case-insensitive substring matching; other fields use exact match.
type OrganizationService ¶
OrganizationService implements the peeringdb.v1.OrganizationService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*OrganizationService) GetOrganization ¶
func (s *OrganizationService) GetOrganization(ctx context.Context, req *pb.GetOrganizationRequest) (*pb.GetOrganizationResponse, error)
GetOrganization returns a single organization by ID. Returns NOT_FOUND if the organization does not exist.
func (*OrganizationService) ListOrganizations ¶
func (s *OrganizationService) ListOrganizations(ctx context.Context, req *pb.ListOrganizationsRequest) (*pb.ListOrganizationsResponse, error)
ListOrganizations returns a paginated list of organizations ordered by ID ascending. Supports page_size, page_token, and optional filter fields (name, country, city, status). Multiple filters combine with AND logic.
type PocService ¶
PocService implements the peeringdb.v1.PocService ConnectRPC handler interface. It queries the ent database layer and converts results to protobuf messages.
func (*PocService) GetPoc ¶
func (s *PocService) GetPoc(ctx context.Context, req *pb.GetPocRequest) (*pb.GetPocResponse, error)
GetPoc returns a single point of contact by ID. Returns NOT_FOUND if the POC does not exist.
func (*PocService) ListPocs ¶
func (s *PocService) ListPocs(ctx context.Context, req *pb.ListPocsRequest) (*pb.ListPocsResponse, error)
ListPocs returns a paginated list of points of contact ordered by ID ascending. Supports page_size, page_token, and optional filter fields (net_id, role, name, status). Multiple filters combine with AND logic.