Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNumberPortabilityServiceServer(s grpc.ServiceRegistrar, srv NumberPortabilityServiceServer)
- type CreatePortingRecordsRequest
- func (*CreatePortingRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePortingRecordsRequest) GetRecords() []*PortingRecord
- func (*CreatePortingRecordsRequest) ProtoMessage()
- func (x *CreatePortingRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePortingRecordsRequest) Reset()
- func (x *CreatePortingRecordsRequest) String() string
- type CreatePortingRecordsResponse
- func (*CreatePortingRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreatePortingRecordsResponse) ProtoMessage()
- func (x *CreatePortingRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePortingRecordsResponse) Reset()
- func (x *CreatePortingRecordsResponse) String() string
- type ListPortingRecordsRequest
- func (*ListPortingRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPortingRecordsRequest) GetOperatorCode() string
- func (x *ListPortingRecordsRequest) GetSubscriberNumberPrefix() string
- func (x *ListPortingRecordsRequest) GetValidFrom() *timestamppb.Timestamp
- func (*ListPortingRecordsRequest) ProtoMessage()
- func (x *ListPortingRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *ListPortingRecordsRequest) Reset()
- func (x *ListPortingRecordsRequest) String() string
- type ListPortingRecordsResponse
- func (*ListPortingRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPortingRecordsResponse) GetRecords() []*PortingRecord
- func (*ListPortingRecordsResponse) ProtoMessage()
- func (x *ListPortingRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *ListPortingRecordsResponse) Reset()
- func (x *ListPortingRecordsResponse) String() string
- type NumberPortabilityServiceClient
- type NumberPortabilityServiceServer
- type PortingRecord
- func (*PortingRecord) Descriptor() ([]byte, []int)deprecated
- func (x *PortingRecord) GetMetadata() map[string]string
- func (x *PortingRecord) GetOperatorCode() string
- func (x *PortingRecord) GetRoutingCode() string
- func (x *PortingRecord) GetSubscriberNumber() *v1.E164
- func (x *PortingRecord) GetValidFrom() *timestamppb.Timestamp
- func (*PortingRecord) ProtoMessage()
- func (x *PortingRecord) ProtoReflect() protoreflect.Message
- func (x *PortingRecord) Reset()
- func (x *PortingRecord) String() string
- type UnimplementedNumberPortabilityServiceServer
- func (UnimplementedNumberPortabilityServiceServer) CreatePortingRecords(context.Context, *CreatePortingRecordsRequest) (*CreatePortingRecordsResponse, error)
- func (UnimplementedNumberPortabilityServiceServer) ListPortingRecords(context.Context, *ListPortingRecordsRequest) (*ListPortingRecordsResponse, error)
- type UnsafeNumberPortabilityServiceServer
Constants ¶
const ( NumberPortabilityService_CreatePortingRecords_FullMethodName = "/wgtwo.number_portability.v0.NumberPortabilityService/CreatePortingRecords" NumberPortabilityService_ListPortingRecords_FullMethodName = "/wgtwo.number_portability.v0.NumberPortabilityService/ListPortingRecords" )
Variables ¶
var File_wgtwo_number_portability_v0_number_portability_proto protoreflect.FileDescriptor
var NumberPortabilityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.number_portability.v0.NumberPortabilityService", HandlerType: (*NumberPortabilityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreatePortingRecords", Handler: _NumberPortabilityService_CreatePortingRecords_Handler, }, { MethodName: "ListPortingRecords", Handler: _NumberPortabilityService_ListPortingRecords_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wgtwo/number_portability/v0/number_portability.proto", }
NumberPortabilityService_ServiceDesc is the grpc.ServiceDesc for NumberPortabilityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNumberPortabilityServiceServer ¶
func RegisterNumberPortabilityServiceServer(s grpc.ServiceRegistrar, srv NumberPortabilityServiceServer)
Types ¶
type CreatePortingRecordsRequest ¶
type CreatePortingRecordsRequest struct { // Porting records to be created. Records []*PortingRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
Request message to create porting records.
func (*CreatePortingRecordsRequest) Descriptor
deprecated
func (*CreatePortingRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePortingRecordsRequest.ProtoReflect.Descriptor instead.
func (*CreatePortingRecordsRequest) GetRecords ¶
func (x *CreatePortingRecordsRequest) GetRecords() []*PortingRecord
func (*CreatePortingRecordsRequest) ProtoMessage ¶
func (*CreatePortingRecordsRequest) ProtoMessage()
func (*CreatePortingRecordsRequest) ProtoReflect ¶
func (x *CreatePortingRecordsRequest) ProtoReflect() protoreflect.Message
func (*CreatePortingRecordsRequest) Reset ¶
func (x *CreatePortingRecordsRequest) Reset()
func (*CreatePortingRecordsRequest) String ¶
func (x *CreatePortingRecordsRequest) String() string
type CreatePortingRecordsResponse ¶
type CreatePortingRecordsResponse struct {
// contains filtered or unexported fields
}
Response message for create porting records.
func (*CreatePortingRecordsResponse) Descriptor
deprecated
func (*CreatePortingRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreatePortingRecordsResponse.ProtoReflect.Descriptor instead.
func (*CreatePortingRecordsResponse) ProtoMessage ¶
func (*CreatePortingRecordsResponse) ProtoMessage()
func (*CreatePortingRecordsResponse) ProtoReflect ¶
func (x *CreatePortingRecordsResponse) ProtoReflect() protoreflect.Message
func (*CreatePortingRecordsResponse) Reset ¶
func (x *CreatePortingRecordsResponse) Reset()
func (*CreatePortingRecordsResponse) String ¶
func (x *CreatePortingRecordsResponse) String() string
type ListPortingRecordsRequest ¶
type ListPortingRecordsRequest struct { // Optional subscriber number prefix to filter porting records. OperatorCode *string `protobuf:"bytes,1,opt,name=operator_code,json=operatorCode,proto3,oneof" json:"operator_code,omitempty"` // Optional operator code to filter porting records. SubscriberNumberPrefix *string `` /* 135-byte string literal not displayed */ // Optional porting date to filter porting records. ValidFrom *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=valid_from,json=validFrom,proto3,oneof" json:"valid_from,omitempty"` // contains filtered or unexported fields }
Request message to list porting records.
func (*ListPortingRecordsRequest) Descriptor
deprecated
func (*ListPortingRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPortingRecordsRequest.ProtoReflect.Descriptor instead.
func (*ListPortingRecordsRequest) GetOperatorCode ¶
func (x *ListPortingRecordsRequest) GetOperatorCode() string
func (*ListPortingRecordsRequest) GetSubscriberNumberPrefix ¶
func (x *ListPortingRecordsRequest) GetSubscriberNumberPrefix() string
func (*ListPortingRecordsRequest) GetValidFrom ¶
func (x *ListPortingRecordsRequest) GetValidFrom() *timestamppb.Timestamp
func (*ListPortingRecordsRequest) ProtoMessage ¶
func (*ListPortingRecordsRequest) ProtoMessage()
func (*ListPortingRecordsRequest) ProtoReflect ¶
func (x *ListPortingRecordsRequest) ProtoReflect() protoreflect.Message
func (*ListPortingRecordsRequest) Reset ¶
func (x *ListPortingRecordsRequest) Reset()
func (*ListPortingRecordsRequest) String ¶
func (x *ListPortingRecordsRequest) String() string
type ListPortingRecordsResponse ¶
type ListPortingRecordsResponse struct { // Porting records. Records []*PortingRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
Response message for list porting records.
func (*ListPortingRecordsResponse) Descriptor
deprecated
func (*ListPortingRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPortingRecordsResponse.ProtoReflect.Descriptor instead.
func (*ListPortingRecordsResponse) GetRecords ¶
func (x *ListPortingRecordsResponse) GetRecords() []*PortingRecord
func (*ListPortingRecordsResponse) ProtoMessage ¶
func (*ListPortingRecordsResponse) ProtoMessage()
func (*ListPortingRecordsResponse) ProtoReflect ¶
func (x *ListPortingRecordsResponse) ProtoReflect() protoreflect.Message
func (*ListPortingRecordsResponse) Reset ¶
func (x *ListPortingRecordsResponse) Reset()
func (*ListPortingRecordsResponse) String ¶
func (x *ListPortingRecordsResponse) String() string
type NumberPortabilityServiceClient ¶
type NumberPortabilityServiceClient interface { // CreatePortingRecords is used to import porting records into the number portability database. CreatePortingRecords(ctx context.Context, in *CreatePortingRecordsRequest, opts ...grpc.CallOption) (*CreatePortingRecordsResponse, error) // ListPortingRecords is used to list porting records from the number portability database. ListPortingRecords(ctx context.Context, in *ListPortingRecordsRequest, opts ...grpc.CallOption) (*ListPortingRecordsResponse, error) }
NumberPortabilityServiceClient is the client API for NumberPortabilityService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
NumberPortabilityService is supposed to be used by tenants or third parties to import country-specific number porting records into Working Group Two's number portability database. A porting record consists of a subscriber number, recipient operator, porting date and optional routing code as well as tenant-specific metadata. Porting date can both be a past or a future date.
func NewNumberPortabilityServiceClient ¶
func NewNumberPortabilityServiceClient(cc grpc.ClientConnInterface) NumberPortabilityServiceClient
type NumberPortabilityServiceServer ¶
type NumberPortabilityServiceServer interface { // CreatePortingRecords is used to import porting records into the number portability database. CreatePortingRecords(context.Context, *CreatePortingRecordsRequest) (*CreatePortingRecordsResponse, error) // ListPortingRecords is used to list porting records from the number portability database. ListPortingRecords(context.Context, *ListPortingRecordsRequest) (*ListPortingRecordsResponse, error) }
NumberPortabilityServiceServer is the server API for NumberPortabilityService service. All implementations should embed UnimplementedNumberPortabilityServiceServer for forward compatibility.
NumberPortabilityService is supposed to be used by tenants or third parties to import country-specific number porting records into Working Group Two's number portability database. A porting record consists of a subscriber number, recipient operator, porting date and optional routing code as well as tenant-specific metadata. Porting date can both be a past or a future date.
type PortingRecord ¶
type PortingRecord struct { // Subscriber number with a country code. SubscriberNumber *v1.E164 `protobuf:"bytes,1,opt,name=subscriber_number,json=subscriberNumber,proto3" json:"subscriber_number,omitempty"` // A new operator's code (in Sweden this is SPID allocated by SNPAC). OperatorCode string `protobuf:"bytes,2,opt,name=operator_code,json=operatorCode,proto3" json:"operator_code,omitempty"` // Routing code of the new operator, used at least in Sweden. RoutingCode string `protobuf:"bytes,3,opt,name=routing_code,json=routingCode,proto3" json:"routing_code,omitempty"` // Porting date and time. ValidFrom *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"` // May be used to store tenant-specific data. Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
Message representing a porting record.
func (*PortingRecord) Descriptor
deprecated
func (*PortingRecord) Descriptor() ([]byte, []int)
Deprecated: Use PortingRecord.ProtoReflect.Descriptor instead.
func (*PortingRecord) GetMetadata ¶
func (x *PortingRecord) GetMetadata() map[string]string
func (*PortingRecord) GetOperatorCode ¶
func (x *PortingRecord) GetOperatorCode() string
func (*PortingRecord) GetRoutingCode ¶
func (x *PortingRecord) GetRoutingCode() string
func (*PortingRecord) GetSubscriberNumber ¶
func (x *PortingRecord) GetSubscriberNumber() *v1.E164
func (*PortingRecord) GetValidFrom ¶
func (x *PortingRecord) GetValidFrom() *timestamppb.Timestamp
func (*PortingRecord) ProtoMessage ¶
func (*PortingRecord) ProtoMessage()
func (*PortingRecord) ProtoReflect ¶
func (x *PortingRecord) ProtoReflect() protoreflect.Message
func (*PortingRecord) Reset ¶
func (x *PortingRecord) Reset()
func (*PortingRecord) String ¶
func (x *PortingRecord) String() string
type UnimplementedNumberPortabilityServiceServer ¶
type UnimplementedNumberPortabilityServiceServer struct{}
UnimplementedNumberPortabilityServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNumberPortabilityServiceServer) CreatePortingRecords ¶
func (UnimplementedNumberPortabilityServiceServer) CreatePortingRecords(context.Context, *CreatePortingRecordsRequest) (*CreatePortingRecordsResponse, error)
func (UnimplementedNumberPortabilityServiceServer) ListPortingRecords ¶
func (UnimplementedNumberPortabilityServiceServer) ListPortingRecords(context.Context, *ListPortingRecordsRequest) (*ListPortingRecordsResponse, error)
type UnsafeNumberPortabilityServiceServer ¶
type UnsafeNumberPortabilityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNumberPortabilityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NumberPortabilityServiceServer will result in compilation errors.