Documentation ¶
Index ¶
- Variables
- func RegisterGiantWhaleServiceServer(s grpc.ServiceRegistrar, srv GiantWhaleServiceServer)
- type Chain
- type GetGiantWhaleRep
- func (*GetGiantWhaleRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetGiantWhaleRep) GetCode() ReturnCode
- func (x *GetGiantWhaleRep) GetGwList() []*GiantWhale
- func (x *GetGiantWhaleRep) GetMsg() string
- func (*GetGiantWhaleRep) ProtoMessage()
- func (x *GetGiantWhaleRep) ProtoReflect() protoreflect.Message
- func (x *GetGiantWhaleRep) Reset()
- func (x *GetGiantWhaleRep) String() string
- type GetGiantWhaleReq
- func (*GetGiantWhaleReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetGiantWhaleReq) GetChain() string
- func (x *GetGiantWhaleReq) GetConsumerToken() string
- func (x *GetGiantWhaleReq) GetPage() uint32
- func (x *GetGiantWhaleReq) GetPageSize() uint32
- func (*GetGiantWhaleReq) ProtoMessage()
- func (x *GetGiantWhaleReq) ProtoReflect() protoreflect.Message
- func (x *GetGiantWhaleReq) Reset()
- func (x *GetGiantWhaleReq) String() string
- type GiantWhale
- func (*GiantWhale) Descriptor() ([]byte, []int)deprecated
- func (x *GiantWhale) GetAddress() string
- func (x *GiantWhale) GetHolder() string
- func (x *GiantWhale) GetId() string
- func (*GiantWhale) ProtoMessage()
- func (x *GiantWhale) ProtoReflect() protoreflect.Message
- func (x *GiantWhale) Reset()
- func (x *GiantWhale) String() string
- type GiantWhaleServiceClient
- type GiantWhaleServiceServer
- type RemoveGiantWhaleRep
- func (*RemoveGiantWhaleRep) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveGiantWhaleRep) GetCode() ReturnCode
- func (x *RemoveGiantWhaleRep) GetMsg() string
- func (*RemoveGiantWhaleRep) ProtoMessage()
- func (x *RemoveGiantWhaleRep) ProtoReflect() protoreflect.Message
- func (x *RemoveGiantWhaleRep) Reset()
- func (x *RemoveGiantWhaleRep) String() string
- type RemoveGiantWhaleReq
- func (*RemoveGiantWhaleReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveGiantWhaleReq) GetAddress() uint32
- func (x *RemoveGiantWhaleReq) GetChain() string
- func (x *RemoveGiantWhaleReq) GetConsumerToken() string
- func (*RemoveGiantWhaleReq) ProtoMessage()
- func (x *RemoveGiantWhaleReq) ProtoReflect() protoreflect.Message
- func (x *RemoveGiantWhaleReq) Reset()
- func (x *RemoveGiantWhaleReq) String() string
- type ReturnCode
- type SetGiantWhaleRep
- func (*SetGiantWhaleRep) Descriptor() ([]byte, []int)deprecated
- func (x *SetGiantWhaleRep) GetCode() ReturnCode
- func (x *SetGiantWhaleRep) GetMsg() string
- func (*SetGiantWhaleRep) ProtoMessage()
- func (x *SetGiantWhaleRep) ProtoReflect() protoreflect.Message
- func (x *SetGiantWhaleRep) Reset()
- func (x *SetGiantWhaleRep) String() string
- type SetGiantWhaleReq
- func (*SetGiantWhaleReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetGiantWhaleReq) GetAddress() string
- func (x *SetGiantWhaleReq) GetChain() string
- func (x *SetGiantWhaleReq) GetConsumerToken() string
- func (x *SetGiantWhaleReq) GetHolder() string
- func (*SetGiantWhaleReq) ProtoMessage()
- func (x *SetGiantWhaleReq) ProtoReflect() protoreflect.Message
- func (x *SetGiantWhaleReq) Reset()
- func (x *SetGiantWhaleReq) String() string
- type SupportChainRep
- func (*SupportChainRep) Descriptor() ([]byte, []int)deprecated
- func (x *SupportChainRep) GetChains() []*Chain
- func (x *SupportChainRep) GetCode() ReturnCode
- func (x *SupportChainRep) GetMsg() string
- func (*SupportChainRep) ProtoMessage()
- func (x *SupportChainRep) ProtoReflect() protoreflect.Message
- func (x *SupportChainRep) Reset()
- func (x *SupportChainRep) String() string
- type SupportChainReq
- type UnimplementedGiantWhaleServiceServer
- func (UnimplementedGiantWhaleServiceServer) GetGiantWhale(context.Context, *GetGiantWhaleReq) (*GetGiantWhaleRep, error)
- func (UnimplementedGiantWhaleServiceServer) GetSupportChain(context.Context, *SupportChainReq) (*SupportChainRep, error)
- func (UnimplementedGiantWhaleServiceServer) RemoveGiantWhale(context.Context, *RemoveGiantWhaleReq) (*RemoveGiantWhaleRep, error)
- func (UnimplementedGiantWhaleServiceServer) SetGiantWhale(context.Context, *SetGiantWhaleReq) (*SetGiantWhaleRep, error)
- type UnsafeGiantWhaleServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ReturnCode_name = map[int32]string{ 0: "SUCCESS", 1: "ERROR", } ReturnCode_value = map[string]int32{ "SUCCESS": 0, "ERROR": 1, } )
Enum value maps for ReturnCode.
var File_scrapy_proto protoreflect.FileDescriptor
var GiantWhaleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "savourrpc.keylocker.GiantWhaleService", HandlerType: (*GiantWhaleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getSupportChain", Handler: _GiantWhaleService_GetSupportChain_Handler, }, { MethodName: "setGiantWhale", Handler: _GiantWhaleService_SetGiantWhale_Handler, }, { MethodName: "getGiantWhale", Handler: _GiantWhaleService_GetGiantWhale_Handler, }, { MethodName: "removeGiantWhale", Handler: _GiantWhaleService_RemoveGiantWhale_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "scrapy.proto", }
GiantWhaleService_ServiceDesc is the grpc.ServiceDesc for GiantWhaleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGiantWhaleServiceServer ¶
func RegisterGiantWhaleServiceServer(s grpc.ServiceRegistrar, srv GiantWhaleServiceServer)
Types ¶
type Chain ¶
type Chain struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` // contains filtered or unexported fields }
func (*Chain) Descriptor
deprecated
func (*Chain) ProtoMessage ¶
func (*Chain) ProtoMessage()
func (*Chain) ProtoReflect ¶
func (x *Chain) ProtoReflect() protoreflect.Message
type GetGiantWhaleRep ¶
type GetGiantWhaleRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` GwList []*GiantWhale `protobuf:"bytes,3,rep,name=gw_list,json=gwList,proto3" json:"gw_list,omitempty"` // contains filtered or unexported fields }
func (*GetGiantWhaleRep) Descriptor
deprecated
func (*GetGiantWhaleRep) Descriptor() ([]byte, []int)
Deprecated: Use GetGiantWhaleRep.ProtoReflect.Descriptor instead.
func (*GetGiantWhaleRep) GetCode ¶
func (x *GetGiantWhaleRep) GetCode() ReturnCode
func (*GetGiantWhaleRep) GetGwList ¶
func (x *GetGiantWhaleRep) GetGwList() []*GiantWhale
func (*GetGiantWhaleRep) GetMsg ¶
func (x *GetGiantWhaleRep) GetMsg() string
func (*GetGiantWhaleRep) ProtoMessage ¶
func (*GetGiantWhaleRep) ProtoMessage()
func (*GetGiantWhaleRep) ProtoReflect ¶
func (x *GetGiantWhaleRep) ProtoReflect() protoreflect.Message
func (*GetGiantWhaleRep) Reset ¶
func (x *GetGiantWhaleRep) Reset()
func (*GetGiantWhaleRep) String ¶
func (x *GetGiantWhaleRep) String() string
type GetGiantWhaleReq ¶
type GetGiantWhaleReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*GetGiantWhaleReq) Descriptor
deprecated
func (*GetGiantWhaleReq) Descriptor() ([]byte, []int)
Deprecated: Use GetGiantWhaleReq.ProtoReflect.Descriptor instead.
func (*GetGiantWhaleReq) GetChain ¶
func (x *GetGiantWhaleReq) GetChain() string
func (*GetGiantWhaleReq) GetConsumerToken ¶
func (x *GetGiantWhaleReq) GetConsumerToken() string
func (*GetGiantWhaleReq) GetPage ¶
func (x *GetGiantWhaleReq) GetPage() uint32
func (*GetGiantWhaleReq) GetPageSize ¶
func (x *GetGiantWhaleReq) GetPageSize() uint32
func (*GetGiantWhaleReq) ProtoMessage ¶
func (*GetGiantWhaleReq) ProtoMessage()
func (*GetGiantWhaleReq) ProtoReflect ¶
func (x *GetGiantWhaleReq) ProtoReflect() protoreflect.Message
func (*GetGiantWhaleReq) Reset ¶
func (x *GetGiantWhaleReq) Reset()
func (*GetGiantWhaleReq) String ¶
func (x *GetGiantWhaleReq) String() string
type GiantWhale ¶
type GiantWhale struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` // contains filtered or unexported fields }
func (*GiantWhale) Descriptor
deprecated
func (*GiantWhale) Descriptor() ([]byte, []int)
Deprecated: Use GiantWhale.ProtoReflect.Descriptor instead.
func (*GiantWhale) GetAddress ¶
func (x *GiantWhale) GetAddress() string
func (*GiantWhale) GetHolder ¶
func (x *GiantWhale) GetHolder() string
func (*GiantWhale) GetId ¶
func (x *GiantWhale) GetId() string
func (*GiantWhale) ProtoMessage ¶
func (*GiantWhale) ProtoMessage()
func (*GiantWhale) ProtoReflect ¶
func (x *GiantWhale) ProtoReflect() protoreflect.Message
func (*GiantWhale) Reset ¶
func (x *GiantWhale) Reset()
func (*GiantWhale) String ¶
func (x *GiantWhale) String() string
type GiantWhaleServiceClient ¶
type GiantWhaleServiceClient interface { GetSupportChain(ctx context.Context, in *SupportChainReq, opts ...grpc.CallOption) (*SupportChainRep, error) SetGiantWhale(ctx context.Context, in *SetGiantWhaleReq, opts ...grpc.CallOption) (*SetGiantWhaleRep, error) GetGiantWhale(ctx context.Context, in *GetGiantWhaleReq, opts ...grpc.CallOption) (*GetGiantWhaleRep, error) RemoveGiantWhale(ctx context.Context, in *RemoveGiantWhaleReq, opts ...grpc.CallOption) (*RemoveGiantWhaleRep, error) }
GiantWhaleServiceClient is the client API for GiantWhaleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGiantWhaleServiceClient ¶
func NewGiantWhaleServiceClient(cc grpc.ClientConnInterface) GiantWhaleServiceClient
type GiantWhaleServiceServer ¶
type GiantWhaleServiceServer interface { GetSupportChain(context.Context, *SupportChainReq) (*SupportChainRep, error) SetGiantWhale(context.Context, *SetGiantWhaleReq) (*SetGiantWhaleRep, error) GetGiantWhale(context.Context, *GetGiantWhaleReq) (*GetGiantWhaleRep, error) RemoveGiantWhale(context.Context, *RemoveGiantWhaleReq) (*RemoveGiantWhaleRep, error) }
GiantWhaleServiceServer is the server API for GiantWhaleService service. All implementations must embed UnimplementedGiantWhaleServiceServer for forward compatibility
type RemoveGiantWhaleRep ¶
type RemoveGiantWhaleRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*RemoveGiantWhaleRep) Descriptor
deprecated
func (*RemoveGiantWhaleRep) Descriptor() ([]byte, []int)
Deprecated: Use RemoveGiantWhaleRep.ProtoReflect.Descriptor instead.
func (*RemoveGiantWhaleRep) GetCode ¶
func (x *RemoveGiantWhaleRep) GetCode() ReturnCode
func (*RemoveGiantWhaleRep) GetMsg ¶
func (x *RemoveGiantWhaleRep) GetMsg() string
func (*RemoveGiantWhaleRep) ProtoMessage ¶
func (*RemoveGiantWhaleRep) ProtoMessage()
func (*RemoveGiantWhaleRep) ProtoReflect ¶
func (x *RemoveGiantWhaleRep) ProtoReflect() protoreflect.Message
func (*RemoveGiantWhaleRep) Reset ¶
func (x *RemoveGiantWhaleRep) Reset()
func (*RemoveGiantWhaleRep) String ¶
func (x *RemoveGiantWhaleRep) String() string
type RemoveGiantWhaleReq ¶
type RemoveGiantWhaleReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` Address uint32 `protobuf:"varint,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*RemoveGiantWhaleReq) Descriptor
deprecated
func (*RemoveGiantWhaleReq) Descriptor() ([]byte, []int)
Deprecated: Use RemoveGiantWhaleReq.ProtoReflect.Descriptor instead.
func (*RemoveGiantWhaleReq) GetAddress ¶
func (x *RemoveGiantWhaleReq) GetAddress() uint32
func (*RemoveGiantWhaleReq) GetChain ¶
func (x *RemoveGiantWhaleReq) GetChain() string
func (*RemoveGiantWhaleReq) GetConsumerToken ¶
func (x *RemoveGiantWhaleReq) GetConsumerToken() string
func (*RemoveGiantWhaleReq) ProtoMessage ¶
func (*RemoveGiantWhaleReq) ProtoMessage()
func (*RemoveGiantWhaleReq) ProtoReflect ¶
func (x *RemoveGiantWhaleReq) ProtoReflect() protoreflect.Message
func (*RemoveGiantWhaleReq) Reset ¶
func (x *RemoveGiantWhaleReq) Reset()
func (*RemoveGiantWhaleReq) String ¶
func (x *RemoveGiantWhaleReq) String() string
type ReturnCode ¶
type ReturnCode int32
const ( ReturnCode_SUCCESS ReturnCode = 0 ReturnCode_ERROR ReturnCode = 1 )
func (ReturnCode) Descriptor ¶
func (ReturnCode) Descriptor() protoreflect.EnumDescriptor
func (ReturnCode) Enum ¶
func (x ReturnCode) Enum() *ReturnCode
func (ReturnCode) EnumDescriptor
deprecated
func (ReturnCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReturnCode.Descriptor instead.
func (ReturnCode) Number ¶
func (x ReturnCode) Number() protoreflect.EnumNumber
func (ReturnCode) String ¶
func (x ReturnCode) String() string
func (ReturnCode) Type ¶
func (ReturnCode) Type() protoreflect.EnumType
type SetGiantWhaleRep ¶
type SetGiantWhaleRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*SetGiantWhaleRep) Descriptor
deprecated
func (*SetGiantWhaleRep) Descriptor() ([]byte, []int)
Deprecated: Use SetGiantWhaleRep.ProtoReflect.Descriptor instead.
func (*SetGiantWhaleRep) GetCode ¶
func (x *SetGiantWhaleRep) GetCode() ReturnCode
func (*SetGiantWhaleRep) GetMsg ¶
func (x *SetGiantWhaleRep) GetMsg() string
func (*SetGiantWhaleRep) ProtoMessage ¶
func (*SetGiantWhaleRep) ProtoMessage()
func (*SetGiantWhaleRep) ProtoReflect ¶
func (x *SetGiantWhaleRep) ProtoReflect() protoreflect.Message
func (*SetGiantWhaleRep) Reset ¶
func (x *SetGiantWhaleRep) Reset()
func (*SetGiantWhaleRep) String ¶
func (x *SetGiantWhaleRep) String() string
type SetGiantWhaleReq ¶
type SetGiantWhaleReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Holder string `protobuf:"bytes,4,opt,name=holder,proto3" json:"holder,omitempty"` // contains filtered or unexported fields }
func (*SetGiantWhaleReq) Descriptor
deprecated
func (*SetGiantWhaleReq) Descriptor() ([]byte, []int)
Deprecated: Use SetGiantWhaleReq.ProtoReflect.Descriptor instead.
func (*SetGiantWhaleReq) GetAddress ¶
func (x *SetGiantWhaleReq) GetAddress() string
func (*SetGiantWhaleReq) GetChain ¶
func (x *SetGiantWhaleReq) GetChain() string
func (*SetGiantWhaleReq) GetConsumerToken ¶
func (x *SetGiantWhaleReq) GetConsumerToken() string
func (*SetGiantWhaleReq) GetHolder ¶
func (x *SetGiantWhaleReq) GetHolder() string
func (*SetGiantWhaleReq) ProtoMessage ¶
func (*SetGiantWhaleReq) ProtoMessage()
func (*SetGiantWhaleReq) ProtoReflect ¶
func (x *SetGiantWhaleReq) ProtoReflect() protoreflect.Message
func (*SetGiantWhaleReq) Reset ¶
func (x *SetGiantWhaleReq) Reset()
func (*SetGiantWhaleReq) String ¶
func (x *SetGiantWhaleReq) String() string
type SupportChainRep ¶
type SupportChainRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=savourrpc.keylocker.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Chains []*Chain `protobuf:"bytes,3,rep,name=chains,proto3" json:"chains,omitempty"` // contains filtered or unexported fields }
func (*SupportChainRep) Descriptor
deprecated
func (*SupportChainRep) Descriptor() ([]byte, []int)
Deprecated: Use SupportChainRep.ProtoReflect.Descriptor instead.
func (*SupportChainRep) GetChains ¶
func (x *SupportChainRep) GetChains() []*Chain
func (*SupportChainRep) GetCode ¶
func (x *SupportChainRep) GetCode() ReturnCode
func (*SupportChainRep) GetMsg ¶
func (x *SupportChainRep) GetMsg() string
func (*SupportChainRep) ProtoMessage ¶
func (*SupportChainRep) ProtoMessage()
func (*SupportChainRep) ProtoReflect ¶
func (x *SupportChainRep) ProtoReflect() protoreflect.Message
func (*SupportChainRep) Reset ¶
func (x *SupportChainRep) Reset()
func (*SupportChainRep) String ¶
func (x *SupportChainRep) String() string
type SupportChainReq ¶
type SupportChainReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` // contains filtered or unexported fields }
func (*SupportChainReq) Descriptor
deprecated
func (*SupportChainReq) Descriptor() ([]byte, []int)
Deprecated: Use SupportChainReq.ProtoReflect.Descriptor instead.
func (*SupportChainReq) GetConsumerToken ¶
func (x *SupportChainReq) GetConsumerToken() string
func (*SupportChainReq) ProtoMessage ¶
func (*SupportChainReq) ProtoMessage()
func (*SupportChainReq) ProtoReflect ¶
func (x *SupportChainReq) ProtoReflect() protoreflect.Message
func (*SupportChainReq) Reset ¶
func (x *SupportChainReq) Reset()
func (*SupportChainReq) String ¶
func (x *SupportChainReq) String() string
type UnimplementedGiantWhaleServiceServer ¶
type UnimplementedGiantWhaleServiceServer struct { }
UnimplementedGiantWhaleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGiantWhaleServiceServer) GetGiantWhale ¶
func (UnimplementedGiantWhaleServiceServer) GetGiantWhale(context.Context, *GetGiantWhaleReq) (*GetGiantWhaleRep, error)
func (UnimplementedGiantWhaleServiceServer) GetSupportChain ¶
func (UnimplementedGiantWhaleServiceServer) GetSupportChain(context.Context, *SupportChainReq) (*SupportChainRep, error)
func (UnimplementedGiantWhaleServiceServer) RemoveGiantWhale ¶
func (UnimplementedGiantWhaleServiceServer) RemoveGiantWhale(context.Context, *RemoveGiantWhaleReq) (*RemoveGiantWhaleRep, error)
func (UnimplementedGiantWhaleServiceServer) SetGiantWhale ¶
func (UnimplementedGiantWhaleServiceServer) SetGiantWhale(context.Context, *SetGiantWhaleReq) (*SetGiantWhaleRep, error)
type UnsafeGiantWhaleServiceServer ¶
type UnsafeGiantWhaleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGiantWhaleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GiantWhaleServiceServer will result in compilation errors.