Documentation
¶
Index ¶
- Variables
- func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
- type CommonClient
- type CommonServer
- 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 SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetAddress() string
- func (x *SendRequest) GetAmount() uint64
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- type SendResponse
- type UnimplementedCommonServer
- func (UnimplementedCommonServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
- func (UnimplementedCommonServer) Send(context.Context, *SendRequest) (*SendResponse, error)
- func (UnimplementedCommonServer) WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
- type UnsafeCommonServer
- type WalletBalanceRequest
- type WalletBalanceResponse
- func (*WalletBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WalletBalanceResponse) GetBalanceSats() 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 Common_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Common", HandlerType: (*CommonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "WalletBalance", Handler: _Common_WalletBalance_Handler, }, { MethodName: "NewAddress", Handler: _Common_NewAddress_Handler, }, { MethodName: "Send", Handler: _Common_Send_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common_client.proto", }
Common_ServiceDesc is the grpc.ServiceDesc for Common service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_common_client_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommonServer ¶
func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
Types ¶
type CommonClient ¶
type CommonClient interface { WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) }
CommonClient is the client API for Common 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 NewCommonClient ¶
func NewCommonClient(cc grpc.ClientConnInterface) CommonClient
type CommonServer ¶
type CommonServer interface { WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) Send(context.Context, *SendRequest) (*SendResponse, error) // contains filtered or unexported methods }
CommonServer is the server API for Common service. All implementations must embed UnimplementedCommonServer for forward compatibility
type NewAddressRequest ¶
type NewAddressRequest struct {
// contains filtered or unexported fields
}
func (*NewAddressRequest) Descriptor
deprecated
func (*NewAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead.
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 SendRequest ¶
type SendRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetAddress ¶
func (x *SendRequest) GetAddress() string
func (*SendRequest) GetAmount ¶
func (x *SendRequest) GetAmount() uint64
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
type SendResponse ¶
type SendResponse struct { TxId string `protobuf:"bytes,1,opt,name=txId,proto3" json:"txId,omitempty"` // contains filtered or unexported fields }
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetTxId ¶
func (x *SendResponse) GetTxId() string
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
type UnimplementedCommonServer ¶
type UnimplementedCommonServer struct { }
UnimplementedCommonServer must be embedded to have forward compatible implementations.
func (UnimplementedCommonServer) NewAddress ¶
func (UnimplementedCommonServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
func (UnimplementedCommonServer) Send ¶
func (UnimplementedCommonServer) Send(context.Context, *SendRequest) (*SendResponse, error)
func (UnimplementedCommonServer) WalletBalance ¶
func (UnimplementedCommonServer) WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
type UnsafeCommonServer ¶
type UnsafeCommonServer interface {
// contains filtered or unexported methods
}
UnsafeCommonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommonServer will result in compilation errors.
type WalletBalanceRequest ¶
type WalletBalanceRequest struct {
// contains filtered or unexported fields
}
func (*WalletBalanceRequest) Descriptor
deprecated
func (*WalletBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use WalletBalanceRequest.ProtoReflect.Descriptor instead.
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 { BalanceSats uint64 `protobuf:"varint,1,opt,name=balanceSats,proto3" json:"balanceSats,omitempty"` // contains filtered or unexported fields }
func (*WalletBalanceResponse) Descriptor
deprecated
func (*WalletBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use WalletBalanceResponse.ProtoReflect.Descriptor instead.
func (*WalletBalanceResponse) GetBalanceSats ¶
func (x *WalletBalanceResponse) GetBalanceSats() 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