Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSimServiceServer(s grpc.ServiceRegistrar, srv SimServiceServer)
- type AddRequest
- type AddResponse
- type AddSim
- func (*AddSim) Descriptor() ([]byte, []int)deprecated
- func (x *AddSim) GetActivationCode() string
- func (x *AddSim) GetIccid() string
- func (x *AddSim) GetIsPhysical() bool
- func (x *AddSim) GetMsisdn() string
- func (x *AddSim) GetQrCode() string
- func (x *AddSim) GetSimType() string
- func (x *AddSim) GetSmDpAddress() string
- func (*AddSim) ProtoMessage()
- func (x *AddSim) ProtoReflect() protoreflect.Message
- func (x *AddSim) Reset()
- func (x *AddSim) String() string
- func (this *AddSim) Validate() error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() []uint64
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (this *DeleteRequest) Validate() error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetId() []uint64
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (this *DeleteResponse) Validate() error
- type GetByIccidRequest
- func (*GetByIccidRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIccidRequest) GetIccid() string
- func (*GetByIccidRequest) ProtoMessage()
- func (x *GetByIccidRequest) ProtoReflect() protoreflect.Message
- func (x *GetByIccidRequest) Reset()
- func (x *GetByIccidRequest) String() string
- func (this *GetByIccidRequest) Validate() error
- type GetByIccidResponse
- func (*GetByIccidResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIccidResponse) GetSim() *Sim
- func (*GetByIccidResponse) ProtoMessage()
- func (x *GetByIccidResponse) ProtoReflect() protoreflect.Message
- func (x *GetByIccidResponse) Reset()
- func (x *GetByIccidResponse) String() string
- func (this *GetByIccidResponse) Validate() error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetIsPhysicalSim() bool
- func (x *GetRequest) GetSimType() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- func (this *GetRequest) Validate() error
- type GetResponse
- type GetSimsRequest
- func (*GetSimsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSimsRequest) GetSimType() string
- func (*GetSimsRequest) ProtoMessage()
- func (x *GetSimsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSimsRequest) Reset()
- func (x *GetSimsRequest) String() string
- func (this *GetSimsRequest) Validate() error
- type GetSimsResponse
- func (*GetSimsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSimsResponse) GetSims() []*Sim
- func (*GetSimsResponse) ProtoMessage()
- func (x *GetSimsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSimsResponse) Reset()
- func (x *GetSimsResponse) String() string
- func (this *GetSimsResponse) Validate() error
- type GetStatsRequest
- func (*GetStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatsRequest) GetSimType() string
- func (*GetStatsRequest) ProtoMessage()
- func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetStatsRequest) Reset()
- func (x *GetStatsRequest) String() string
- func (this *GetStatsRequest) Validate() error
- type GetStatsResponse
- func (*GetStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatsResponse) GetAvailable() uint64
- func (x *GetStatsResponse) GetConsumed() uint64
- func (x *GetStatsResponse) GetEsim() uint64
- func (x *GetStatsResponse) GetFailed() uint64
- func (x *GetStatsResponse) GetPhysical() uint64
- func (x *GetStatsResponse) GetTotal() uint64
- func (*GetStatsResponse) ProtoMessage()
- func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatsResponse) Reset()
- func (x *GetStatsResponse) String() string
- func (this *GetStatsResponse) Validate() error
- type Sim
- func (*Sim) Descriptor() ([]byte, []int)deprecated
- func (x *Sim) GetActivationCode() string
- func (x *Sim) GetCreatedAt() string
- func (x *Sim) GetDeletedAt() string
- func (x *Sim) GetIccid() string
- func (x *Sim) GetId() uint64
- func (x *Sim) GetIsAllocated() bool
- func (x *Sim) GetIsFailed() bool
- func (x *Sim) GetIsPhysical() bool
- func (x *Sim) GetMsisdn() string
- func (x *Sim) GetQrCode() string
- func (x *Sim) GetSimType() string
- func (x *Sim) GetSmDpAddress() string
- func (x *Sim) GetUpdatedAt() string
- func (*Sim) ProtoMessage()
- func (x *Sim) ProtoReflect() protoreflect.Message
- func (x *Sim) Reset()
- func (x *Sim) String() string
- func (this *Sim) Validate() error
- type SimServiceClient
- type SimServiceServer
- type UnimplementedSimServiceServer
- func (UnimplementedSimServiceServer) Add(context.Context, *AddRequest) (*AddResponse, error)
- func (UnimplementedSimServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedSimServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedSimServiceServer) GetByIccid(context.Context, *GetByIccidRequest) (*GetByIccidResponse, error)
- func (UnimplementedSimServiceServer) GetSims(context.Context, *GetSimsRequest) (*GetSimsResponse, error)
- func (UnimplementedSimServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
- func (UnimplementedSimServiceServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error)
- type UnsafeSimServiceServer
- type UpdateStatusRequest
- func (*UpdateStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStatusRequest) GetIccid() string
- func (x *UpdateStatusRequest) GetIsAllocated() bool
- func (x *UpdateStatusRequest) GetIsFailed() bool
- func (*UpdateStatusRequest) ProtoMessage()
- func (x *UpdateStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStatusRequest) Reset()
- func (x *UpdateStatusRequest) String() string
- func (this *UpdateStatusRequest) Validate() error
- type UpdateStatusResponse
- func (*UpdateStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateStatusResponse) ProtoMessage()
- func (x *UpdateStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateStatusResponse) Reset()
- func (x *UpdateStatusResponse) String() string
- func (this *UpdateStatusResponse) Validate() error
- type UploadRequest
- func (*UploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadRequest) GetSimData() []byte
- func (x *UploadRequest) GetSimType() string
- func (*UploadRequest) ProtoMessage()
- func (x *UploadRequest) ProtoReflect() protoreflect.Message
- func (x *UploadRequest) Reset()
- func (x *UploadRequest) String() string
- func (this *UploadRequest) Validate() error
- type UploadResponse
- func (*UploadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadResponse) GetIccid() []string
- func (*UploadResponse) ProtoMessage()
- func (x *UploadResponse) ProtoReflect() protoreflect.Message
- func (x *UploadResponse) Reset()
- func (x *UploadResponse) String() string
- func (this *UploadResponse) Validate() error
Constants ¶
const ( SimService_Get_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/Get" SimService_GetByIccid_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/GetByIccid" SimService_GetStats_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/GetStats" SimService_Add_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/Add" SimService_Delete_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/Delete" SimService_Upload_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/Upload" SimService_GetSims_FullMethodName = "/ukama.subscriber.sim_pool.v1.SimService/GetSims" )
Variables ¶
var File_sim_pool_proto protoreflect.FileDescriptor
var SimService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ukama.subscriber.sim_pool.v1.SimService", HandlerType: (*SimServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SimService_Get_Handler, }, { MethodName: "GetByIccid", Handler: _SimService_GetByIccid_Handler, }, { MethodName: "GetStats", Handler: _SimService_GetStats_Handler, }, { MethodName: "Add", Handler: _SimService_Add_Handler, }, { MethodName: "Delete", Handler: _SimService_Delete_Handler, }, { MethodName: "Upload", Handler: _SimService_Upload_Handler, }, { MethodName: "GetSims", Handler: _SimService_GetSims_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sim_pool.proto", }
SimService_ServiceDesc is the grpc.ServiceDesc for SimService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSimServiceServer ¶
func RegisterSimServiceServer(s grpc.ServiceRegistrar, srv SimServiceServer)
Types ¶
type AddRequest ¶
type AddRequest struct { Sim []*AddSim `protobuf:"bytes,1,rep,name=sim,proto3" json:"sim,omitempty"` /// Slice of sims to add in sim pool // contains filtered or unexported fields }
func (*AddRequest) Descriptor
deprecated
func (*AddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.
func (*AddRequest) GetSim ¶
func (x *AddRequest) GetSim() []*AddSim
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) ProtoReflect ¶
func (x *AddRequest) ProtoReflect() protoreflect.Message
func (*AddRequest) Reset ¶
func (x *AddRequest) Reset()
func (*AddRequest) String ¶
func (x *AddRequest) String() string
func (*AddRequest) Validate ¶
func (this *AddRequest) Validate() error
type AddResponse ¶
type AddResponse struct { Sim []*Sim `protobuf:"bytes,1,rep,name=sim,proto3" json:"sim,omitempty"` /// Slice of sims added in sim pool // contains filtered or unexported fields }
func (*AddResponse) Descriptor
deprecated
func (*AddResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.
func (*AddResponse) GetSim ¶
func (x *AddResponse) GetSim() []*Sim
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) ProtoReflect ¶
func (x *AddResponse) ProtoReflect() protoreflect.Message
func (*AddResponse) Reset ¶
func (x *AddResponse) Reset()
func (*AddResponse) String ¶
func (x *AddResponse) String() string
func (*AddResponse) Validate ¶
func (this *AddResponse) Validate() error
type AddSim ¶
type AddSim struct { Iccid string `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"` SimType string `protobuf:"bytes,2,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` Msisdn string `protobuf:"bytes,3,opt,name=msisdn,proto3" json:"msisdn,omitempty"` SmDpAddress string `protobuf:"bytes,4,opt,name=smDpAddress,json=sm_ap_address,proto3" json:"smDpAddress,omitempty"` ActivationCode string `protobuf:"bytes,5,opt,name=activationCode,json=activation_code,proto3" json:"activationCode,omitempty"` QrCode string `protobuf:"bytes,6,opt,name=qrCode,json=qr_code,proto3" json:"qrCode,omitempty"` IsPhysical bool `protobuf:"varint,7,opt,name=isPhysical,json=is_physical,proto3" json:"isPhysical,omitempty"` // contains filtered or unexported fields }
func (*AddSim) Descriptor
deprecated
func (*AddSim) GetActivationCode ¶
func (*AddSim) GetIsPhysical ¶
func (*AddSim) GetSimType ¶
func (*AddSim) GetSmDpAddress ¶
func (*AddSim) ProtoMessage ¶
func (*AddSim) ProtoMessage()
func (*AddSim) ProtoReflect ¶
func (x *AddSim) ProtoReflect() protoreflect.Message
type DeleteRequest ¶
type DeleteRequest struct { Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` /// Slice of sim id's to delete from sim pool // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() []uint64
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (this *DeleteRequest) Validate() error
type DeleteResponse ¶
type DeleteResponse struct { Id []uint64 `protobuf:"varint,1,rep,packed,name=id,proto3" json:"id,omitempty"` /// Slice of sim id's deleted from sim pool // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetId ¶
func (x *DeleteResponse) GetId() []uint64
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (this *DeleteResponse) Validate() error
type GetByIccidRequest ¶
type GetByIccidRequest struct { Iccid string `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"` /// Sim iccid string // contains filtered or unexported fields }
func (*GetByIccidRequest) Descriptor
deprecated
func (*GetByIccidRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIccidRequest.ProtoReflect.Descriptor instead.
func (*GetByIccidRequest) GetIccid ¶
func (x *GetByIccidRequest) GetIccid() string
func (*GetByIccidRequest) ProtoMessage ¶
func (*GetByIccidRequest) ProtoMessage()
func (*GetByIccidRequest) ProtoReflect ¶
func (x *GetByIccidRequest) ProtoReflect() protoreflect.Message
func (*GetByIccidRequest) Reset ¶
func (x *GetByIccidRequest) Reset()
func (*GetByIccidRequest) String ¶
func (x *GetByIccidRequest) String() string
func (*GetByIccidRequest) Validate ¶
func (this *GetByIccidRequest) Validate() error
type GetByIccidResponse ¶
type GetByIccidResponse struct { Sim *Sim `protobuf:"bytes,1,opt,name=sim,proto3" json:"sim,omitempty"` /// Sim object // contains filtered or unexported fields }
func (*GetByIccidResponse) Descriptor
deprecated
func (*GetByIccidResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIccidResponse.ProtoReflect.Descriptor instead.
func (*GetByIccidResponse) GetSim ¶
func (x *GetByIccidResponse) GetSim() *Sim
func (*GetByIccidResponse) ProtoMessage ¶
func (*GetByIccidResponse) ProtoMessage()
func (*GetByIccidResponse) ProtoReflect ¶
func (x *GetByIccidResponse) ProtoReflect() protoreflect.Message
func (*GetByIccidResponse) Reset ¶
func (x *GetByIccidResponse) Reset()
func (*GetByIccidResponse) String ¶
func (x *GetByIccidResponse) String() string
func (*GetByIccidResponse) Validate ¶
func (this *GetByIccidResponse) Validate() error
type GetRequest ¶
type GetRequest struct { IsPhysicalSim bool `protobuf:"varint,1,opt,name=IsPhysicalSim,json=is_physical_sim,proto3" json:"IsPhysicalSim,omitempty"` /// True/False SimType string `protobuf:"bytes,2,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` /// SimType string enum // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetIsPhysicalSim ¶
func (x *GetRequest) GetIsPhysicalSim() bool
func (*GetRequest) GetSimType ¶
func (x *GetRequest) GetSimType() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) Validate ¶
func (this *GetRequest) Validate() error
type GetResponse ¶
type GetResponse struct { Sim *Sim `protobuf:"bytes,1,opt,name=sim,proto3" json:"sim,omitempty"` /// Sim object // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetSim ¶
func (x *GetResponse) GetSim() *Sim
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) Validate ¶
func (this *GetResponse) Validate() error
type GetSimsRequest ¶
type GetSimsRequest struct { SimType string `protobuf:"bytes,1,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` /// SimType string enum // contains filtered or unexported fields }
func (*GetSimsRequest) Descriptor
deprecated
func (*GetSimsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSimsRequest.ProtoReflect.Descriptor instead.
func (*GetSimsRequest) GetSimType ¶
func (x *GetSimsRequest) GetSimType() string
func (*GetSimsRequest) ProtoMessage ¶
func (*GetSimsRequest) ProtoMessage()
func (*GetSimsRequest) ProtoReflect ¶
func (x *GetSimsRequest) ProtoReflect() protoreflect.Message
func (*GetSimsRequest) Reset ¶
func (x *GetSimsRequest) Reset()
func (*GetSimsRequest) String ¶
func (x *GetSimsRequest) String() string
func (*GetSimsRequest) Validate ¶
func (this *GetSimsRequest) Validate() error
type GetSimsResponse ¶
type GetSimsResponse struct { Sims []*Sim `protobuf:"bytes,1,rep,name=sims,proto3" json:"sims,omitempty"` /// Sims slice // contains filtered or unexported fields }
func (*GetSimsResponse) Descriptor
deprecated
func (*GetSimsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSimsResponse.ProtoReflect.Descriptor instead.
func (*GetSimsResponse) GetSims ¶
func (x *GetSimsResponse) GetSims() []*Sim
func (*GetSimsResponse) ProtoMessage ¶
func (*GetSimsResponse) ProtoMessage()
func (*GetSimsResponse) ProtoReflect ¶
func (x *GetSimsResponse) ProtoReflect() protoreflect.Message
func (*GetSimsResponse) Reset ¶
func (x *GetSimsResponse) Reset()
func (*GetSimsResponse) String ¶
func (x *GetSimsResponse) String() string
func (*GetSimsResponse) Validate ¶
func (this *GetSimsResponse) Validate() error
type GetStatsRequest ¶
type GetStatsRequest struct { SimType string `protobuf:"bytes,1,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` /// SimType string enum // contains filtered or unexported fields }
func (*GetStatsRequest) Descriptor
deprecated
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (*GetStatsRequest) GetSimType ¶
func (x *GetStatsRequest) GetSimType() string
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) ProtoReflect ¶
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (*GetStatsRequest) Reset ¶
func (x *GetStatsRequest) Reset()
func (*GetStatsRequest) String ¶
func (x *GetStatsRequest) String() string
func (*GetStatsRequest) Validate ¶
func (this *GetStatsRequest) Validate() error
type GetStatsResponse ¶
type GetStatsResponse struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` /// Total sims in sim pool Available uint64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` /// Available sims in sim pool Consumed uint64 `protobuf:"varint,3,opt,name=consumed,proto3" json:"consumed,omitempty"` /// Consumed sims in sim pool Failed uint64 `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"` /// Failed sims in sim pool Physical uint64 `protobuf:"varint,5,opt,name=physical,proto3" json:"physical,omitempty"` /// Physical sims in sim pool Esim uint64 `protobuf:"varint,6,opt,name=esim,proto3" json:"esim,omitempty"` /// E-sims in sim pool // contains filtered or unexported fields }
func (*GetStatsResponse) Descriptor
deprecated
func (*GetStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
func (*GetStatsResponse) GetAvailable ¶
func (x *GetStatsResponse) GetAvailable() uint64
func (*GetStatsResponse) GetConsumed ¶
func (x *GetStatsResponse) GetConsumed() uint64
func (*GetStatsResponse) GetEsim ¶
func (x *GetStatsResponse) GetEsim() uint64
func (*GetStatsResponse) GetFailed ¶
func (x *GetStatsResponse) GetFailed() uint64
func (*GetStatsResponse) GetPhysical ¶
func (x *GetStatsResponse) GetPhysical() uint64
func (*GetStatsResponse) GetTotal ¶
func (x *GetStatsResponse) GetTotal() uint64
func (*GetStatsResponse) ProtoMessage ¶
func (*GetStatsResponse) ProtoMessage()
func (*GetStatsResponse) ProtoReflect ¶
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
func (*GetStatsResponse) Reset ¶
func (x *GetStatsResponse) Reset()
func (*GetStatsResponse) String ¶
func (x *GetStatsResponse) String() string
func (*GetStatsResponse) Validate ¶
func (this *GetStatsResponse) Validate() error
type Sim ¶
type Sim struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Iccid string `protobuf:"bytes,2,opt,name=iccid,proto3" json:"iccid,omitempty"` Msisdn string `protobuf:"bytes,3,opt,name=msisdn,proto3" json:"msisdn,omitempty"` IsAllocated bool `protobuf:"varint,4,opt,name=isAllocated,json=is_allocated,proto3" json:"isAllocated,omitempty"` IsFailed bool `protobuf:"varint,5,opt,name=isFailed,json=is_failed,proto3" json:"isFailed,omitempty"` SimType string `protobuf:"bytes,6,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` SmDpAddress string `protobuf:"bytes,7,opt,name=smDpAddress,json=sm_ap_address,proto3" json:"smDpAddress,omitempty"` ActivationCode string `protobuf:"bytes,8,opt,name=activationCode,json=activation_code,proto3" json:"activationCode,omitempty"` CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,json=created_at,proto3" json:"createdAt,omitempty"` DeletedAt string `protobuf:"bytes,10,opt,name=deletedAt,json=deleted_at,proto3" json:"deletedAt,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updatedAt,json=updated_at,proto3" json:"updatedAt,omitempty"` IsPhysical bool `protobuf:"varint,12,opt,name=isPhysical,json=is_physical,proto3" json:"isPhysical,omitempty"` QrCode string `protobuf:"bytes,13,opt,name=qrCode,json=qr_code,proto3" json:"qrCode,omitempty"` // contains filtered or unexported fields }
func (*Sim) Descriptor
deprecated
func (*Sim) GetActivationCode ¶
func (*Sim) GetCreatedAt ¶
func (*Sim) GetDeletedAt ¶
func (*Sim) GetIsAllocated ¶
func (*Sim) GetIsFailed ¶
func (*Sim) GetIsPhysical ¶
func (*Sim) GetSimType ¶
func (*Sim) GetSmDpAddress ¶
func (*Sim) GetUpdatedAt ¶
func (*Sim) ProtoMessage ¶
func (*Sim) ProtoMessage()
func (*Sim) ProtoReflect ¶
func (x *Sim) ProtoReflect() protoreflect.Message
type SimServiceClient ¶
type SimServiceClient interface { // / Get sim from pool Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetByIccid(ctx context.Context, in *GetByIccidRequest, opts ...grpc.CallOption) (*GetByIccidResponse, error) // / Get sim pool statistaics GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) // / Add sims to pool Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) // / Delete sims from pool Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) // / Batch upload sims from CSV Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadResponse, error) // / Get sims from pool GetSims(ctx context.Context, in *GetSimsRequest, opts ...grpc.CallOption) (*GetSimsResponse, error) }
SimServiceClient is the client API for SimService 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 NewSimServiceClient ¶
func NewSimServiceClient(cc grpc.ClientConnInterface) SimServiceClient
type SimServiceServer ¶
type SimServiceServer interface { // / Get sim from pool Get(context.Context, *GetRequest) (*GetResponse, error) GetByIccid(context.Context, *GetByIccidRequest) (*GetByIccidResponse, error) // / Get sim pool statistaics GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) // / Add sims to pool Add(context.Context, *AddRequest) (*AddResponse, error) // / Delete sims from pool Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // / Batch upload sims from CSV Upload(context.Context, *UploadRequest) (*UploadResponse, error) // / Get sims from pool GetSims(context.Context, *GetSimsRequest) (*GetSimsResponse, error) // contains filtered or unexported methods }
SimServiceServer is the server API for SimService service. All implementations must embed UnimplementedSimServiceServer for forward compatibility
type UnimplementedSimServiceServer ¶
type UnimplementedSimServiceServer struct { }
UnimplementedSimServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSimServiceServer) Add ¶
func (UnimplementedSimServiceServer) Add(context.Context, *AddRequest) (*AddResponse, error)
func (UnimplementedSimServiceServer) Delete ¶
func (UnimplementedSimServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedSimServiceServer) Get ¶
func (UnimplementedSimServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedSimServiceServer) GetByIccid ¶
func (UnimplementedSimServiceServer) GetByIccid(context.Context, *GetByIccidRequest) (*GetByIccidResponse, error)
func (UnimplementedSimServiceServer) GetSims ¶
func (UnimplementedSimServiceServer) GetSims(context.Context, *GetSimsRequest) (*GetSimsResponse, error)
func (UnimplementedSimServiceServer) GetStats ¶
func (UnimplementedSimServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
func (UnimplementedSimServiceServer) Upload ¶
func (UnimplementedSimServiceServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error)
type UnsafeSimServiceServer ¶
type UnsafeSimServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSimServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SimServiceServer will result in compilation errors.
type UpdateStatusRequest ¶
type UpdateStatusRequest struct { Iccid string `protobuf:"bytes,1,opt,name=iccid,proto3" json:"iccid,omitempty"` /// Sim iccid string IsAllocated bool `protobuf:"varint,2,opt,name=isAllocated,json=is_allocated,proto3" json:"isAllocated,omitempty"` // Sim allocated True/False IsFailed bool `protobuf:"varint,3,opt,name=isFailed,json=is_failed,proto3" json:"isFailed,omitempty"` // Sim failed True/False // contains filtered or unexported fields }
func (*UpdateStatusRequest) Descriptor
deprecated
func (*UpdateStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateStatusRequest) GetIccid ¶
func (x *UpdateStatusRequest) GetIccid() string
func (*UpdateStatusRequest) GetIsAllocated ¶
func (x *UpdateStatusRequest) GetIsAllocated() bool
func (*UpdateStatusRequest) GetIsFailed ¶
func (x *UpdateStatusRequest) GetIsFailed() bool
func (*UpdateStatusRequest) ProtoMessage ¶
func (*UpdateStatusRequest) ProtoMessage()
func (*UpdateStatusRequest) ProtoReflect ¶
func (x *UpdateStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateStatusRequest) Reset ¶
func (x *UpdateStatusRequest) Reset()
func (*UpdateStatusRequest) String ¶
func (x *UpdateStatusRequest) String() string
func (*UpdateStatusRequest) Validate ¶
func (this *UpdateStatusRequest) Validate() error
type UpdateStatusResponse ¶
type UpdateStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateStatusResponse) Descriptor
deprecated
func (*UpdateStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateStatusResponse) ProtoMessage ¶
func (*UpdateStatusResponse) ProtoMessage()
func (*UpdateStatusResponse) ProtoReflect ¶
func (x *UpdateStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateStatusResponse) Reset ¶
func (x *UpdateStatusResponse) Reset()
func (*UpdateStatusResponse) String ¶
func (x *UpdateStatusResponse) String() string
func (*UpdateStatusResponse) Validate ¶
func (this *UpdateStatusResponse) Validate() error
type UploadRequest ¶
type UploadRequest struct { SimData []byte `protobuf:"bytes,1,opt,name=simData,proto3" json:"simData,omitempty"` /// Bytes of CSV file content SimType string `protobuf:"bytes,2,opt,name=simType,json=sim_type,proto3" json:"simType,omitempty"` /// SimType of sim // contains filtered or unexported fields }
func (*UploadRequest) Descriptor
deprecated
func (*UploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
func (*UploadRequest) GetSimData ¶
func (x *UploadRequest) GetSimData() []byte
func (*UploadRequest) GetSimType ¶
func (x *UploadRequest) GetSimType() string
func (*UploadRequest) ProtoMessage ¶
func (*UploadRequest) ProtoMessage()
func (*UploadRequest) ProtoReflect ¶
func (x *UploadRequest) ProtoReflect() protoreflect.Message
func (*UploadRequest) Reset ¶
func (x *UploadRequest) Reset()
func (*UploadRequest) String ¶
func (x *UploadRequest) String() string
func (*UploadRequest) Validate ¶
func (this *UploadRequest) Validate() error
type UploadResponse ¶
type UploadResponse struct { Iccid []string `protobuf:"bytes,1,rep,name=iccid,proto3" json:"iccid,omitempty"` /// Slice of sims id added in sim pool // contains filtered or unexported fields }
func (*UploadResponse) Descriptor
deprecated
func (*UploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
func (*UploadResponse) GetIccid ¶
func (x *UploadResponse) GetIccid() []string
func (*UploadResponse) ProtoMessage ¶
func (*UploadResponse) ProtoMessage()
func (*UploadResponse) ProtoReflect ¶
func (x *UploadResponse) ProtoReflect() protoreflect.Message
func (*UploadResponse) Reset ¶
func (x *UploadResponse) Reset()
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string
func (*UploadResponse) Validate ¶
func (this *UploadResponse) Validate() error