Documentation ¶
Index ¶
- Variables
- func RegisterKaspawalletdServer(s *grpc.Server, srv KaspawalletdServer)
- type BroadcastRequest
- type BroadcastResponse
- type CreateUnsignedTransactionRequest
- func (*CreateUnsignedTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUnsignedTransactionRequest) GetAddress() string
- func (x *CreateUnsignedTransactionRequest) GetAmount() uint64
- func (*CreateUnsignedTransactionRequest) ProtoMessage()
- func (x *CreateUnsignedTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUnsignedTransactionRequest) Reset()
- func (x *CreateUnsignedTransactionRequest) String() string
- type CreateUnsignedTransactionResponse
- func (*CreateUnsignedTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUnsignedTransactionResponse) GetUnsignedTransaction() []byte
- func (*CreateUnsignedTransactionResponse) ProtoMessage()
- func (x *CreateUnsignedTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUnsignedTransactionResponse) Reset()
- func (x *CreateUnsignedTransactionResponse) String() string
- type GetBalanceRequest
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceResponse) GetAvailable() uint64
- func (x *GetBalanceResponse) GetPending() uint64
- func (*GetBalanceResponse) ProtoMessage()
- func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *GetBalanceResponse) Reset()
- func (x *GetBalanceResponse) String() string
- type GetReceiveAddressRequest
- type GetReceiveAddressResponse
- func (*GetReceiveAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceiveAddressResponse) GetAddress() string
- func (*GetReceiveAddressResponse) ProtoMessage()
- func (x *GetReceiveAddressResponse) ProtoReflect() protoreflect.Message
- func (x *GetReceiveAddressResponse) Reset()
- func (x *GetReceiveAddressResponse) String() string
- type KaspawalletdClient
- type KaspawalletdServer
- type ShutdownRequest
- type ShutdownResponse
- type UnimplementedKaspawalletdServer
- func (*UnimplementedKaspawalletdServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error)
- func (*UnimplementedKaspawalletdServer) CreateUnsignedTransaction(context.Context, *CreateUnsignedTransactionRequest) (*CreateUnsignedTransactionResponse, error)
- func (*UnimplementedKaspawalletdServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
- func (*UnimplementedKaspawalletdServer) GetReceiveAddress(context.Context, *GetReceiveAddressRequest) (*GetReceiveAddressResponse, error)
- func (*UnimplementedKaspawalletdServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_kaspawalletd_proto protoreflect.FileDescriptor
Functions ¶
func RegisterKaspawalletdServer ¶
func RegisterKaspawalletdServer(s *grpc.Server, srv KaspawalletdServer)
Types ¶
type BroadcastRequest ¶
type BroadcastRequest struct { Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*BroadcastRequest) Descriptor
deprecated
func (*BroadcastRequest) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastRequest.ProtoReflect.Descriptor instead.
func (*BroadcastRequest) GetTransaction ¶
func (x *BroadcastRequest) GetTransaction() []byte
func (*BroadcastRequest) ProtoMessage ¶
func (*BroadcastRequest) ProtoMessage()
func (*BroadcastRequest) ProtoReflect ¶
func (x *BroadcastRequest) ProtoReflect() protoreflect.Message
func (*BroadcastRequest) Reset ¶
func (x *BroadcastRequest) Reset()
func (*BroadcastRequest) String ¶
func (x *BroadcastRequest) String() string
type BroadcastResponse ¶
type BroadcastResponse struct { TxID string `protobuf:"bytes,1,opt,name=txID,proto3" json:"txID,omitempty"` // contains filtered or unexported fields }
func (*BroadcastResponse) Descriptor
deprecated
func (*BroadcastResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastResponse.ProtoReflect.Descriptor instead.
func (*BroadcastResponse) GetTxID ¶
func (x *BroadcastResponse) GetTxID() string
func (*BroadcastResponse) ProtoMessage ¶
func (*BroadcastResponse) ProtoMessage()
func (*BroadcastResponse) ProtoReflect ¶
func (x *BroadcastResponse) ProtoReflect() protoreflect.Message
func (*BroadcastResponse) Reset ¶
func (x *BroadcastResponse) Reset()
func (*BroadcastResponse) String ¶
func (x *BroadcastResponse) String() string
type CreateUnsignedTransactionRequest ¶
type CreateUnsignedTransactionRequest 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 (*CreateUnsignedTransactionRequest) Descriptor
deprecated
func (*CreateUnsignedTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUnsignedTransactionRequest.ProtoReflect.Descriptor instead.
func (*CreateUnsignedTransactionRequest) GetAddress ¶
func (x *CreateUnsignedTransactionRequest) GetAddress() string
func (*CreateUnsignedTransactionRequest) GetAmount ¶
func (x *CreateUnsignedTransactionRequest) GetAmount() uint64
func (*CreateUnsignedTransactionRequest) ProtoMessage ¶
func (*CreateUnsignedTransactionRequest) ProtoMessage()
func (*CreateUnsignedTransactionRequest) ProtoReflect ¶
func (x *CreateUnsignedTransactionRequest) ProtoReflect() protoreflect.Message
func (*CreateUnsignedTransactionRequest) Reset ¶
func (x *CreateUnsignedTransactionRequest) Reset()
func (*CreateUnsignedTransactionRequest) String ¶
func (x *CreateUnsignedTransactionRequest) String() string
type CreateUnsignedTransactionResponse ¶
type CreateUnsignedTransactionResponse struct { UnsignedTransaction []byte `protobuf:"bytes,1,opt,name=unsignedTransaction,proto3" json:"unsignedTransaction,omitempty"` // contains filtered or unexported fields }
func (*CreateUnsignedTransactionResponse) Descriptor
deprecated
func (*CreateUnsignedTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUnsignedTransactionResponse.ProtoReflect.Descriptor instead.
func (*CreateUnsignedTransactionResponse) GetUnsignedTransaction ¶
func (x *CreateUnsignedTransactionResponse) GetUnsignedTransaction() []byte
func (*CreateUnsignedTransactionResponse) ProtoMessage ¶
func (*CreateUnsignedTransactionResponse) ProtoMessage()
func (*CreateUnsignedTransactionResponse) ProtoReflect ¶
func (x *CreateUnsignedTransactionResponse) ProtoReflect() protoreflect.Message
func (*CreateUnsignedTransactionResponse) Reset ¶
func (x *CreateUnsignedTransactionResponse) Reset()
func (*CreateUnsignedTransactionResponse) String ¶
func (x *CreateUnsignedTransactionResponse) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct {
// contains filtered or unexported fields
}
func (*GetBalanceRequest) Descriptor
deprecated
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) ProtoReflect ¶
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
func (*GetBalanceRequest) Reset ¶
func (x *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (x *GetBalanceRequest) String() string
type GetBalanceResponse ¶
type GetBalanceResponse struct { Available uint64 `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"` Pending uint64 `protobuf:"varint,2,opt,name=pending,proto3" json:"pending,omitempty"` // contains filtered or unexported fields }
func (*GetBalanceResponse) Descriptor
deprecated
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) GetAvailable ¶
func (x *GetBalanceResponse) GetAvailable() uint64
func (*GetBalanceResponse) GetPending ¶
func (x *GetBalanceResponse) GetPending() uint64
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) ProtoReflect ¶
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
func (*GetBalanceResponse) Reset ¶
func (x *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (x *GetBalanceResponse) String() string
type GetReceiveAddressRequest ¶
type GetReceiveAddressRequest struct {
// contains filtered or unexported fields
}
func (*GetReceiveAddressRequest) Descriptor
deprecated
func (*GetReceiveAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReceiveAddressRequest.ProtoReflect.Descriptor instead.
func (*GetReceiveAddressRequest) ProtoMessage ¶
func (*GetReceiveAddressRequest) ProtoMessage()
func (*GetReceiveAddressRequest) ProtoReflect ¶
func (x *GetReceiveAddressRequest) ProtoReflect() protoreflect.Message
func (*GetReceiveAddressRequest) Reset ¶
func (x *GetReceiveAddressRequest) Reset()
func (*GetReceiveAddressRequest) String ¶
func (x *GetReceiveAddressRequest) String() string
type GetReceiveAddressResponse ¶
type GetReceiveAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetReceiveAddressResponse) Descriptor
deprecated
func (*GetReceiveAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReceiveAddressResponse.ProtoReflect.Descriptor instead.
func (*GetReceiveAddressResponse) GetAddress ¶
func (x *GetReceiveAddressResponse) GetAddress() string
func (*GetReceiveAddressResponse) ProtoMessage ¶
func (*GetReceiveAddressResponse) ProtoMessage()
func (*GetReceiveAddressResponse) ProtoReflect ¶
func (x *GetReceiveAddressResponse) ProtoReflect() protoreflect.Message
func (*GetReceiveAddressResponse) Reset ¶
func (x *GetReceiveAddressResponse) Reset()
func (*GetReceiveAddressResponse) String ¶
func (x *GetReceiveAddressResponse) String() string
type KaspawalletdClient ¶
type KaspawalletdClient interface { GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) CreateUnsignedTransaction(ctx context.Context, in *CreateUnsignedTransactionRequest, opts ...grpc.CallOption) (*CreateUnsignedTransactionResponse, error) GetReceiveAddress(ctx context.Context, in *GetReceiveAddressRequest, opts ...grpc.CallOption) (*GetReceiveAddressResponse, error) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) Broadcast(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error) }
KaspawalletdClient is the client API for Kaspawalletd 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 NewKaspawalletdClient ¶
func NewKaspawalletdClient(cc grpc.ClientConnInterface) KaspawalletdClient
type KaspawalletdServer ¶
type KaspawalletdServer interface { GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) CreateUnsignedTransaction(context.Context, *CreateUnsignedTransactionRequest) (*CreateUnsignedTransactionResponse, error) GetReceiveAddress(context.Context, *GetReceiveAddressRequest) (*GetReceiveAddressResponse, error) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error) // contains filtered or unexported methods }
KaspawalletdServer is the server API for Kaspawalletd service. All implementations must embed UnimplementedKaspawalletdServer for forward compatibility
type ShutdownRequest ¶
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶
func (x *ShutdownResponse) String() string
type UnimplementedKaspawalletdServer ¶
type UnimplementedKaspawalletdServer struct { }
UnimplementedKaspawalletdServer must be embedded to have forward compatible implementations.
func (*UnimplementedKaspawalletdServer) Broadcast ¶
func (*UnimplementedKaspawalletdServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error)
func (*UnimplementedKaspawalletdServer) CreateUnsignedTransaction ¶
func (*UnimplementedKaspawalletdServer) CreateUnsignedTransaction(context.Context, *CreateUnsignedTransactionRequest) (*CreateUnsignedTransactionResponse, error)
func (*UnimplementedKaspawalletdServer) GetBalance ¶
func (*UnimplementedKaspawalletdServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
func (*UnimplementedKaspawalletdServer) GetReceiveAddress ¶
func (*UnimplementedKaspawalletdServer) GetReceiveAddress(context.Context, *GetReceiveAddressRequest) (*GetReceiveAddressResponse, error)
func (*UnimplementedKaspawalletdServer) Shutdown ¶
func (*UnimplementedKaspawalletdServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)