Documentation
¶
Index ¶
- Variables
- func RegisterRPCServiceServer(s *grpc.Server, srv RPCServiceServer)
- type NewAddressRequest
- type NewAddressResponse
- func (*NewAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewAddressResponse) GetAddress() string
- func (*NewAddressResponse) ProtoMessage()
- func (x *NewAddressResponse) ProtoReflect() protoreflect.Message
- func (x *NewAddressResponse) Reset()
- func (x *NewAddressResponse) String() string
- type RPC
- type RPCServiceClient
- type RPCServiceServer
- type UnimplementedRPCServiceServer
- type WalletBalanceRequest
- func (*WalletBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WalletBalanceRequest) GetAddress() string
- func (*WalletBalanceRequest) ProtoMessage()
- func (x *WalletBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *WalletBalanceRequest) Reset()
- func (x *WalletBalanceRequest) String() string
- type WalletBalanceResponse
- func (*WalletBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WalletBalanceResponse) GetBalance() uint64
- func (*WalletBalanceResponse) ProtoMessage()
- func (x *WalletBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *WalletBalanceResponse) Reset()
- func (x *WalletBalanceResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_wallet_rpc_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRPCServiceServer ¶
func RegisterRPCServiceServer(s *grpc.Server, srv RPCServiceServer)
Types ¶
type NewAddressRequest ¶
type NewAddressRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*NewAddressRequest) Descriptor
deprecated
func (*NewAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead.
func (*NewAddressRequest) GetType ¶
func (x *NewAddressRequest) GetType() string
func (*NewAddressRequest) ProtoMessage ¶
func (*NewAddressRequest) ProtoMessage()
func (*NewAddressRequest) ProtoReflect ¶
func (x *NewAddressRequest) ProtoReflect() protoreflect.Message
func (*NewAddressRequest) Reset ¶
func (x *NewAddressRequest) Reset()
func (*NewAddressRequest) String ¶
func (x *NewAddressRequest) String() string
type NewAddressResponse ¶
type NewAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*NewAddressResponse) Descriptor
deprecated
func (*NewAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead.
func (*NewAddressResponse) GetAddress ¶
func (x *NewAddressResponse) GetAddress() string
func (*NewAddressResponse) ProtoMessage ¶
func (*NewAddressResponse) ProtoMessage()
func (*NewAddressResponse) ProtoReflect ¶
func (x *NewAddressResponse) ProtoReflect() protoreflect.Message
func (*NewAddressResponse) Reset ¶
func (x *NewAddressResponse) Reset()
func (*NewAddressResponse) String ¶
func (x *NewAddressResponse) String() string
type RPC ¶
type RPC struct { UnimplementedRPCServiceServer Module wallet.Module }
RPC implements the gprc service.
func (*RPC) NewAddress ¶
func (s *RPC) NewAddress(ctx context.Context, req *NewAddressRequest) (*NewAddressResponse, error)
NewAddress creates a new wallet.
func (*RPC) WalletBalance ¶
func (s *RPC) WalletBalance(ctx context.Context, req *WalletBalanceRequest) (*WalletBalanceResponse, error)
WalletBalance checks a wallet balance.
type RPCServiceClient ¶
type RPCServiceClient interface { NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error) }
RPCServiceClient is the client API for RPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCServiceClient ¶
func NewRPCServiceClient(cc grpc.ClientConnInterface) RPCServiceClient
type RPCServiceServer ¶
type RPCServiceServer interface { NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error) }
RPCServiceServer is the server API for RPCService service.
type UnimplementedRPCServiceServer ¶
type UnimplementedRPCServiceServer struct { }
UnimplementedRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRPCServiceServer) NewAddress ¶
func (*UnimplementedRPCServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
func (*UnimplementedRPCServiceServer) WalletBalance ¶
func (*UnimplementedRPCServiceServer) WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
type WalletBalanceRequest ¶
type WalletBalanceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*WalletBalanceRequest) Descriptor
deprecated
func (*WalletBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use WalletBalanceRequest.ProtoReflect.Descriptor instead.
func (*WalletBalanceRequest) GetAddress ¶
func (x *WalletBalanceRequest) GetAddress() string
func (*WalletBalanceRequest) ProtoMessage ¶
func (*WalletBalanceRequest) ProtoMessage()
func (*WalletBalanceRequest) ProtoReflect ¶
func (x *WalletBalanceRequest) ProtoReflect() protoreflect.Message
func (*WalletBalanceRequest) Reset ¶
func (x *WalletBalanceRequest) Reset()
func (*WalletBalanceRequest) String ¶
func (x *WalletBalanceRequest) String() string
type WalletBalanceResponse ¶
type WalletBalanceResponse struct { Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
func (*WalletBalanceResponse) Descriptor
deprecated
func (*WalletBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use WalletBalanceResponse.ProtoReflect.Descriptor instead.
func (*WalletBalanceResponse) GetBalance ¶
func (x *WalletBalanceResponse) GetBalance() uint64
func (*WalletBalanceResponse) ProtoMessage ¶
func (*WalletBalanceResponse) ProtoMessage()
func (*WalletBalanceResponse) ProtoReflect ¶
func (x *WalletBalanceResponse) ProtoReflect() protoreflect.Message
func (*WalletBalanceResponse) Reset ¶
func (x *WalletBalanceResponse) Reset()
func (*WalletBalanceResponse) String ¶
func (x *WalletBalanceResponse) String() string