Documentation
¶
Index ¶
- Variables
- func RegisterNetworkInfoServiceServer(s grpc.ServiceRegistrar, srv NetworkInfoServiceServer)
- type AttachmentAttempt
- func (*AttachmentAttempt) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentAttempt) GetIccid() *v0.Iccid
- func (x *AttachmentAttempt) GetImsi() *v0.Imsi
- func (x *AttachmentAttempt) GetNetworkGeneration() v0.NetworkGeneration
- func (x *AttachmentAttempt) GetNetworkIdentity() *v0.NetworkIdentity
- func (x *AttachmentAttempt) GetStatus() *Status
- func (x *AttachmentAttempt) GetTadig() *v0.Tadig
- func (x *AttachmentAttempt) GetTimestamp() *timestamppb.Timestamp
- func (*AttachmentAttempt) ProtoMessage()
- func (x *AttachmentAttempt) ProtoReflect() protoreflect.Message
- func (x *AttachmentAttempt) Reset()
- func (x *AttachmentAttempt) String() string
- type Code
- type GetAttachmentAttemptsForSubscriberRequest
- func (*GetAttachmentAttemptsForSubscriberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttachmentAttemptsForSubscriberRequest) GetFilterByInterval() *Interval
- func (x *GetAttachmentAttemptsForSubscriberRequest) GetMaxAttempts() uint32
- func (x *GetAttachmentAttemptsForSubscriberRequest) GetPhoneNumber() *v0.PhoneNumber
- func (*GetAttachmentAttemptsForSubscriberRequest) ProtoMessage()
- func (x *GetAttachmentAttemptsForSubscriberRequest) ProtoReflect() protoreflect.Message
- func (x *GetAttachmentAttemptsForSubscriberRequest) Reset()
- func (x *GetAttachmentAttemptsForSubscriberRequest) String() string
- type GetAttachmentAttemptsForSubscriberResponse
- func (*GetAttachmentAttemptsForSubscriberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttachmentAttemptsForSubscriberResponse) GetAttachmentAttempts() []*AttachmentAttempt
- func (*GetAttachmentAttemptsForSubscriberResponse) ProtoMessage()
- func (x *GetAttachmentAttemptsForSubscriberResponse) ProtoReflect() protoreflect.Message
- func (x *GetAttachmentAttemptsForSubscriberResponse) Reset()
- func (x *GetAttachmentAttemptsForSubscriberResponse) String() string
- type GetNetworkInfoForSubscriberRequest
- func (*GetNetworkInfoForSubscriberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNetworkInfoForSubscriberRequest) GetPhoneNumber() *v0.PhoneNumber
- func (*GetNetworkInfoForSubscriberRequest) ProtoMessage()
- func (x *GetNetworkInfoForSubscriberRequest) ProtoReflect() protoreflect.Message
- func (x *GetNetworkInfoForSubscriberRequest) Reset()
- func (x *GetNetworkInfoForSubscriberRequest) String() string
- type GetNetworkInfoForSubscriberResponse
- func (*GetNetworkInfoForSubscriberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNetworkInfoForSubscriberResponse) GetNetworkInfos() []*NetworkInfo
- func (*GetNetworkInfoForSubscriberResponse) ProtoMessage()
- func (x *GetNetworkInfoForSubscriberResponse) ProtoReflect() protoreflect.Message
- func (x *GetNetworkInfoForSubscriberResponse) Reset()
- func (x *GetNetworkInfoForSubscriberResponse) String() string
- type Interval
- func (*Interval) Descriptor() ([]byte, []int)deprecated
- func (x *Interval) GetAfter() *timestamppb.Timestamp
- func (x *Interval) GetBefore() *timestamppb.Timestamp
- func (*Interval) ProtoMessage()
- func (x *Interval) ProtoReflect() protoreflect.Message
- func (x *Interval) Reset()
- func (x *Interval) String() string
- type NetworkInfo
- func (*NetworkInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkInfo) GetIccid() *v0.Iccid
- func (x *NetworkInfo) GetImsi() *v0.Imsi
- func (x *NetworkInfo) GetMme() *v0.Fqdn
- func (x *NetworkInfo) GetMsc() *v0.GlobalTitle
- func (x *NetworkInfo) GetNetworkGeneration() v0.NetworkGeneration
- func (x *NetworkInfo) GetNetworkIdentity() *v0.NetworkIdentity
- func (x *NetworkInfo) GetSgsn() *v0.GlobalTitle
- func (x *NetworkInfo) GetTadig() *v0.Tadig
- func (x *NetworkInfo) GetTimestamp() *timestamppb.Timestamp
- func (x *NetworkInfo) GetVlr() *v0.GlobalTitle
- func (*NetworkInfo) ProtoMessage()
- func (x *NetworkInfo) ProtoReflect() protoreflect.Message
- func (x *NetworkInfo) Reset()
- func (x *NetworkInfo) String() string
- type NetworkInfoServiceClient
- type NetworkInfoServiceServer
- type Status
- type UnimplementedNetworkInfoServiceServer
- func (UnimplementedNetworkInfoServiceServer) GetAttachmentAttemptsForSubscriber(context.Context, *GetAttachmentAttemptsForSubscriberRequest) (*GetAttachmentAttemptsForSubscriberResponse, error)
- func (UnimplementedNetworkInfoServiceServer) GetNetworkInfoForSubscriber(context.Context, *GetNetworkInfoForSubscriberRequest) (*GetNetworkInfoForSubscriberResponse, error)
- type UnsafeNetworkInfoServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Code_name = map[int32]string{ 0: "CODE_UNSPECIFIED", 1: "CODE_OK", 2: "CODE_ABSENT_PROFILE", 3: "CODE_ABSENT_SUBSCRIBER", 4: "CODE_UNKNOWN_PROFILE", 5: "CODE_BLOCKED_PROFILE", 6: "CODE_ROAMING_NOT_ALLOWED", } Code_value = map[string]int32{ "CODE_UNSPECIFIED": 0, "CODE_OK": 1, "CODE_ABSENT_PROFILE": 2, "CODE_ABSENT_SUBSCRIBER": 3, "CODE_UNKNOWN_PROFILE": 4, "CODE_BLOCKED_PROFILE": 5, "CODE_ROAMING_NOT_ALLOWED": 6, } )
Enum value maps for Code.
var File_wgtwo_subscription_v0_network_info_proto protoreflect.FileDescriptor
var NetworkInfoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.subscription.v0.NetworkInfoService", HandlerType: (*NetworkInfoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNetworkInfoForSubscriber", Handler: _NetworkInfoService_GetNetworkInfoForSubscriber_Handler, }, { MethodName: "GetAttachmentAttemptsForSubscriber", Handler: _NetworkInfoService_GetAttachmentAttemptsForSubscriber_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wgtwo/subscription/v0/network_info.proto", }
NetworkInfoService_ServiceDesc is the grpc.ServiceDesc for NetworkInfoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNetworkInfoServiceServer ¶
func RegisterNetworkInfoServiceServer(s grpc.ServiceRegistrar, srv NetworkInfoServiceServer)
Types ¶
type AttachmentAttempt ¶
type AttachmentAttempt struct { Iccid *v0.Iccid `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"` Imsi *v0.Imsi `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` NetworkIdentity *v0.NetworkIdentity `protobuf:"bytes,4,opt,name=network_identity,json=networkIdentity,proto3" json:"network_identity,omitempty"` NetworkGeneration v0.NetworkGeneration `` /* 152-byte string literal not displayed */ Tadig *v0.Tadig `protobuf:"bytes,6,opt,name=tadig,proto3" json:"tadig,omitempty"` Status *Status `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AttachmentAttempt) Descriptor
deprecated
func (*AttachmentAttempt) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentAttempt.ProtoReflect.Descriptor instead.
func (*AttachmentAttempt) GetIccid ¶
func (x *AttachmentAttempt) GetIccid() *v0.Iccid
func (*AttachmentAttempt) GetImsi ¶
func (x *AttachmentAttempt) GetImsi() *v0.Imsi
func (*AttachmentAttempt) GetNetworkGeneration ¶
func (x *AttachmentAttempt) GetNetworkGeneration() v0.NetworkGeneration
func (*AttachmentAttempt) GetNetworkIdentity ¶
func (x *AttachmentAttempt) GetNetworkIdentity() *v0.NetworkIdentity
func (*AttachmentAttempt) GetStatus ¶
func (x *AttachmentAttempt) GetStatus() *Status
func (*AttachmentAttempt) GetTadig ¶
func (x *AttachmentAttempt) GetTadig() *v0.Tadig
func (*AttachmentAttempt) GetTimestamp ¶
func (x *AttachmentAttempt) GetTimestamp() *timestamppb.Timestamp
func (*AttachmentAttempt) ProtoMessage ¶
func (*AttachmentAttempt) ProtoMessage()
func (*AttachmentAttempt) ProtoReflect ¶
func (x *AttachmentAttempt) ProtoReflect() protoreflect.Message
func (*AttachmentAttempt) Reset ¶
func (x *AttachmentAttempt) Reset()
func (*AttachmentAttempt) String ¶
func (x *AttachmentAttempt) String() string
type Code ¶
type Code int32
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type GetAttachmentAttemptsForSubscriberRequest ¶
type GetAttachmentAttemptsForSubscriberRequest struct { PhoneNumber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` FilterByInterval *Interval `protobuf:"bytes,2,opt,name=filter_by_interval,json=filterByInterval,proto3" json:"filter_by_interval,omitempty"` MaxAttempts uint32 `protobuf:"varint,3,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` // contains filtered or unexported fields }
func (*GetAttachmentAttemptsForSubscriberRequest) Descriptor
deprecated
func (*GetAttachmentAttemptsForSubscriberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttachmentAttemptsForSubscriberRequest.ProtoReflect.Descriptor instead.
func (*GetAttachmentAttemptsForSubscriberRequest) GetFilterByInterval ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) GetFilterByInterval() *Interval
func (*GetAttachmentAttemptsForSubscriberRequest) GetMaxAttempts ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) GetMaxAttempts() uint32
func (*GetAttachmentAttemptsForSubscriberRequest) GetPhoneNumber ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) GetPhoneNumber() *v0.PhoneNumber
func (*GetAttachmentAttemptsForSubscriberRequest) ProtoMessage ¶
func (*GetAttachmentAttemptsForSubscriberRequest) ProtoMessage()
func (*GetAttachmentAttemptsForSubscriberRequest) ProtoReflect ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) ProtoReflect() protoreflect.Message
func (*GetAttachmentAttemptsForSubscriberRequest) Reset ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) Reset()
func (*GetAttachmentAttemptsForSubscriberRequest) String ¶
func (x *GetAttachmentAttemptsForSubscriberRequest) String() string
type GetAttachmentAttemptsForSubscriberResponse ¶
type GetAttachmentAttemptsForSubscriberResponse struct { AttachmentAttempts []*AttachmentAttempt `protobuf:"bytes,1,rep,name=attachment_attempts,json=attachmentAttempts,proto3" json:"attachment_attempts,omitempty"` // contains filtered or unexported fields }
func (*GetAttachmentAttemptsForSubscriberResponse) Descriptor
deprecated
func (*GetAttachmentAttemptsForSubscriberResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAttachmentAttemptsForSubscriberResponse.ProtoReflect.Descriptor instead.
func (*GetAttachmentAttemptsForSubscriberResponse) GetAttachmentAttempts ¶
func (x *GetAttachmentAttemptsForSubscriberResponse) GetAttachmentAttempts() []*AttachmentAttempt
func (*GetAttachmentAttemptsForSubscriberResponse) ProtoMessage ¶
func (*GetAttachmentAttemptsForSubscriberResponse) ProtoMessage()
func (*GetAttachmentAttemptsForSubscriberResponse) ProtoReflect ¶
func (x *GetAttachmentAttemptsForSubscriberResponse) ProtoReflect() protoreflect.Message
func (*GetAttachmentAttemptsForSubscriberResponse) Reset ¶
func (x *GetAttachmentAttemptsForSubscriberResponse) Reset()
func (*GetAttachmentAttemptsForSubscriberResponse) String ¶
func (x *GetAttachmentAttemptsForSubscriberResponse) String() string
type GetNetworkInfoForSubscriberRequest ¶
type GetNetworkInfoForSubscriberRequest struct { PhoneNumber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // contains filtered or unexported fields }
func (*GetNetworkInfoForSubscriberRequest) Descriptor
deprecated
func (*GetNetworkInfoForSubscriberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoForSubscriberRequest.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoForSubscriberRequest) GetPhoneNumber ¶
func (x *GetNetworkInfoForSubscriberRequest) GetPhoneNumber() *v0.PhoneNumber
func (*GetNetworkInfoForSubscriberRequest) ProtoMessage ¶
func (*GetNetworkInfoForSubscriberRequest) ProtoMessage()
func (*GetNetworkInfoForSubscriberRequest) ProtoReflect ¶
func (x *GetNetworkInfoForSubscriberRequest) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoForSubscriberRequest) Reset ¶
func (x *GetNetworkInfoForSubscriberRequest) Reset()
func (*GetNetworkInfoForSubscriberRequest) String ¶
func (x *GetNetworkInfoForSubscriberRequest) String() string
type GetNetworkInfoForSubscriberResponse ¶
type GetNetworkInfoForSubscriberResponse struct { NetworkInfos []*NetworkInfo `protobuf:"bytes,1,rep,name=network_infos,json=networkInfos,proto3" json:"network_infos,omitempty"` // contains filtered or unexported fields }
func (*GetNetworkInfoForSubscriberResponse) Descriptor
deprecated
func (*GetNetworkInfoForSubscriberResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoForSubscriberResponse.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoForSubscriberResponse) GetNetworkInfos ¶
func (x *GetNetworkInfoForSubscriberResponse) GetNetworkInfos() []*NetworkInfo
func (*GetNetworkInfoForSubscriberResponse) ProtoMessage ¶
func (*GetNetworkInfoForSubscriberResponse) ProtoMessage()
func (*GetNetworkInfoForSubscriberResponse) ProtoReflect ¶
func (x *GetNetworkInfoForSubscriberResponse) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoForSubscriberResponse) Reset ¶
func (x *GetNetworkInfoForSubscriberResponse) Reset()
func (*GetNetworkInfoForSubscriberResponse) String ¶
func (x *GetNetworkInfoForSubscriberResponse) String() string
type Interval ¶
type Interval struct { After *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"` Before *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"` // contains filtered or unexported fields }
func (*Interval) Descriptor
deprecated
func (*Interval) GetAfter ¶
func (x *Interval) GetAfter() *timestamppb.Timestamp
func (*Interval) GetBefore ¶
func (x *Interval) GetBefore() *timestamppb.Timestamp
func (*Interval) ProtoMessage ¶
func (*Interval) ProtoMessage()
func (*Interval) ProtoReflect ¶
func (x *Interval) ProtoReflect() protoreflect.Message
type NetworkInfo ¶
type NetworkInfo struct { Iccid *v0.Iccid `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"` Imsi *v0.Imsi `protobuf:"bytes,2,opt,name=imsi,proto3" json:"imsi,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` NetworkIdentity *v0.NetworkIdentity `protobuf:"bytes,4,opt,name=network_identity,json=networkIdentity,proto3" json:"network_identity,omitempty"` NetworkGeneration v0.NetworkGeneration `` /* 152-byte string literal not displayed */ // TADIG code, if present // May be empty Tadig *v0.Tadig `protobuf:"bytes,6,opt,name=tadig,proto3" json:"tadig,omitempty"` Msc *v0.GlobalTitle `protobuf:"bytes,7,opt,name=msc,proto3" json:"msc,omitempty"` // VLR, if present // May be empty Vlr *v0.GlobalTitle `protobuf:"bytes,8,opt,name=vlr,proto3" json:"vlr,omitempty"` // SGSN, if present // May be empty Sgsn *v0.GlobalTitle `protobuf:"bytes,9,opt,name=sgsn,proto3" json:"sgsn,omitempty"` // MME, if present // May be empty Mme *v0.Fqdn `protobuf:"bytes,10,opt,name=mme,proto3" json:"mme,omitempty"` // contains filtered or unexported fields }
func (*NetworkInfo) Descriptor
deprecated
func (*NetworkInfo) Descriptor() ([]byte, []int)
Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.
func (*NetworkInfo) GetIccid ¶
func (x *NetworkInfo) GetIccid() *v0.Iccid
func (*NetworkInfo) GetImsi ¶
func (x *NetworkInfo) GetImsi() *v0.Imsi
func (*NetworkInfo) GetMme ¶
func (x *NetworkInfo) GetMme() *v0.Fqdn
func (*NetworkInfo) GetMsc ¶
func (x *NetworkInfo) GetMsc() *v0.GlobalTitle
func (*NetworkInfo) GetNetworkGeneration ¶
func (x *NetworkInfo) GetNetworkGeneration() v0.NetworkGeneration
func (*NetworkInfo) GetNetworkIdentity ¶
func (x *NetworkInfo) GetNetworkIdentity() *v0.NetworkIdentity
func (*NetworkInfo) GetSgsn ¶
func (x *NetworkInfo) GetSgsn() *v0.GlobalTitle
func (*NetworkInfo) GetTadig ¶
func (x *NetworkInfo) GetTadig() *v0.Tadig
func (*NetworkInfo) GetTimestamp ¶
func (x *NetworkInfo) GetTimestamp() *timestamppb.Timestamp
func (*NetworkInfo) GetVlr ¶
func (x *NetworkInfo) GetVlr() *v0.GlobalTitle
func (*NetworkInfo) ProtoMessage ¶
func (*NetworkInfo) ProtoMessage()
func (*NetworkInfo) ProtoReflect ¶
func (x *NetworkInfo) ProtoReflect() protoreflect.Message
func (*NetworkInfo) Reset ¶
func (x *NetworkInfo) Reset()
func (*NetworkInfo) String ¶
func (x *NetworkInfo) String() string
type NetworkInfoServiceClient ¶
type NetworkInfoServiceClient interface { // Get current network information for subscriber GetNetworkInfoForSubscriber(ctx context.Context, in *GetNetworkInfoForSubscriberRequest, opts ...grpc.CallOption) (*GetNetworkInfoForSubscriberResponse, error) // Get attachment attempts, both failed and successful, for subscriber GetAttachmentAttemptsForSubscriber(ctx context.Context, in *GetAttachmentAttemptsForSubscriberRequest, opts ...grpc.CallOption) (*GetAttachmentAttemptsForSubscriberResponse, error) }
NetworkInfoServiceClient is the client API for NetworkInfoService 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.
func NewNetworkInfoServiceClient ¶
func NewNetworkInfoServiceClient(cc grpc.ClientConnInterface) NetworkInfoServiceClient
type NetworkInfoServiceServer ¶
type NetworkInfoServiceServer interface { // Get current network information for subscriber GetNetworkInfoForSubscriber(context.Context, *GetNetworkInfoForSubscriberRequest) (*GetNetworkInfoForSubscriberResponse, error) // Get attachment attempts, both failed and successful, for subscriber GetAttachmentAttemptsForSubscriber(context.Context, *GetAttachmentAttemptsForSubscriberRequest) (*GetAttachmentAttemptsForSubscriberResponse, error) }
NetworkInfoServiceServer is the server API for NetworkInfoService service. All implementations should embed UnimplementedNetworkInfoServiceServer for forward compatibility
type Status ¶
type Status struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=wgtwo.subscription.v0.Code" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetDescription ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UnimplementedNetworkInfoServiceServer ¶
type UnimplementedNetworkInfoServiceServer struct { }
UnimplementedNetworkInfoServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedNetworkInfoServiceServer) GetAttachmentAttemptsForSubscriber ¶
func (UnimplementedNetworkInfoServiceServer) GetAttachmentAttemptsForSubscriber(context.Context, *GetAttachmentAttemptsForSubscriberRequest) (*GetAttachmentAttemptsForSubscriberResponse, error)
func (UnimplementedNetworkInfoServiceServer) GetNetworkInfoForSubscriber ¶
func (UnimplementedNetworkInfoServiceServer) GetNetworkInfoForSubscriber(context.Context, *GetNetworkInfoForSubscriberRequest) (*GetNetworkInfoForSubscriberResponse, error)
type UnsafeNetworkInfoServiceServer ¶
type UnsafeNetworkInfoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkInfoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkInfoServiceServer will result in compilation errors.