Documentation ¶
Index ¶
- Variables
- func RegisterKaspawalletdServer(s grpc.ServiceRegistrar, srv KaspawalletdServer)
- type AddressBalances
- func (*AddressBalances) Descriptor() ([]byte, []int)deprecated
- func (x *AddressBalances) GetAddress() string
- func (x *AddressBalances) GetAvailable() uint64
- func (x *AddressBalances) GetPending() uint64
- func (*AddressBalances) ProtoMessage()
- func (x *AddressBalances) ProtoReflect() protoreflect.Message
- func (x *AddressBalances) Reset()
- func (x *AddressBalances) String() string
- 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) GetAddressBalances() []*AddressBalances
- 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 KaspawalletdClient
- type KaspawalletdServer
- 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 ShowAddressesRequest
- type ShowAddressesResponse
- func (*ShowAddressesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShowAddressesResponse) GetAddress() []string
- func (*ShowAddressesResponse) ProtoMessage()
- func (x *ShowAddressesResponse) ProtoReflect() protoreflect.Message
- func (x *ShowAddressesResponse) Reset()
- func (x *ShowAddressesResponse) String() string
- 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) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
- func (UnimplementedKaspawalletdServer) ShowAddresses(context.Context, *ShowAddressesRequest) (*ShowAddressesResponse, error)
- func (UnimplementedKaspawalletdServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- type UnsafeKaspawalletdServer
Constants ¶
This section is empty.
Variables ¶
var File_kaspawalletd_proto protoreflect.FileDescriptor
var Kaspawalletd_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kaspawalletd", HandlerType: (*KaspawalletdServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBalance", Handler: _Kaspawalletd_GetBalance_Handler, }, { MethodName: "CreateUnsignedTransaction", Handler: _Kaspawalletd_CreateUnsignedTransaction_Handler, }, { MethodName: "ShowAddresses", Handler: _Kaspawalletd_ShowAddresses_Handler, }, { MethodName: "NewAddress", Handler: _Kaspawalletd_NewAddress_Handler, }, { MethodName: "Shutdown", Handler: _Kaspawalletd_Shutdown_Handler, }, { MethodName: "Broadcast", Handler: _Kaspawalletd_Broadcast_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kaspawalletd.proto", }
Kaspawalletd_ServiceDesc is the grpc.ServiceDesc for Kaspawalletd service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKaspawalletdServer ¶
func RegisterKaspawalletdServer(s grpc.ServiceRegistrar, srv KaspawalletdServer)
Types ¶
type AddressBalances ¶ added in v0.11.9
type AddressBalances struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Available uint64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` Pending uint64 `protobuf:"varint,3,opt,name=pending,proto3" json:"pending,omitempty"` // contains filtered or unexported fields }
func (*AddressBalances) Descriptor
deprecated
added in
v0.11.9
func (*AddressBalances) Descriptor() ([]byte, []int)
Deprecated: Use AddressBalances.ProtoReflect.Descriptor instead.
func (*AddressBalances) GetAddress ¶ added in v0.11.9
func (x *AddressBalances) GetAddress() string
func (*AddressBalances) GetAvailable ¶ added in v0.11.9
func (x *AddressBalances) GetAvailable() uint64
func (*AddressBalances) GetPending ¶ added in v0.11.9
func (x *AddressBalances) GetPending() uint64
func (*AddressBalances) ProtoMessage ¶ added in v0.11.9
func (*AddressBalances) ProtoMessage()
func (*AddressBalances) ProtoReflect ¶ added in v0.11.9
func (x *AddressBalances) ProtoReflect() protoreflect.Message
func (*AddressBalances) Reset ¶ added in v0.11.9
func (x *AddressBalances) Reset()
func (*AddressBalances) String ¶ added in v0.11.9
func (x *AddressBalances) String() string
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"` AddressBalances []*AddressBalances `protobuf:"bytes,3,rep,name=addressBalances,proto3" json:"addressBalances,omitempty"` // contains filtered or unexported fields }
func (*GetBalanceResponse) Descriptor
deprecated
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) GetAddressBalances ¶ added in v0.11.9
func (x *GetBalanceResponse) GetAddressBalances() []*AddressBalances
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 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) ShowAddresses(ctx context.Context, in *ShowAddressesRequest, opts ...grpc.CallOption) (*ShowAddressesResponse, error) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, 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) ShowAddresses(context.Context, *ShowAddressesRequest) (*ShowAddressesResponse, error) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, 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 NewAddressRequest ¶ added in v0.11.7
type NewAddressRequest struct {
// contains filtered or unexported fields
}
func (*NewAddressRequest) Descriptor
deprecated
added in
v0.11.7
func (*NewAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead.
func (*NewAddressRequest) ProtoMessage ¶ added in v0.11.7
func (*NewAddressRequest) ProtoMessage()
func (*NewAddressRequest) ProtoReflect ¶ added in v0.11.7
func (x *NewAddressRequest) ProtoReflect() protoreflect.Message
func (*NewAddressRequest) Reset ¶ added in v0.11.7
func (x *NewAddressRequest) Reset()
func (*NewAddressRequest) String ¶ added in v0.11.7
func (x *NewAddressRequest) String() string
type NewAddressResponse ¶ added in v0.11.7
type NewAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*NewAddressResponse) Descriptor
deprecated
added in
v0.11.7
func (*NewAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead.
func (*NewAddressResponse) GetAddress ¶ added in v0.11.7
func (x *NewAddressResponse) GetAddress() string
func (*NewAddressResponse) ProtoMessage ¶ added in v0.11.7
func (*NewAddressResponse) ProtoMessage()
func (*NewAddressResponse) ProtoReflect ¶ added in v0.11.7
func (x *NewAddressResponse) ProtoReflect() protoreflect.Message
func (*NewAddressResponse) Reset ¶ added in v0.11.7
func (x *NewAddressResponse) Reset()
func (*NewAddressResponse) String ¶ added in v0.11.7
func (x *NewAddressResponse) String() string
type ShowAddressesRequest ¶ added in v0.11.7
type ShowAddressesRequest struct {
// contains filtered or unexported fields
}
func (*ShowAddressesRequest) Descriptor
deprecated
added in
v0.11.7
func (*ShowAddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowAddressesRequest.ProtoReflect.Descriptor instead.
func (*ShowAddressesRequest) ProtoMessage ¶ added in v0.11.7
func (*ShowAddressesRequest) ProtoMessage()
func (*ShowAddressesRequest) ProtoReflect ¶ added in v0.11.7
func (x *ShowAddressesRequest) ProtoReflect() protoreflect.Message
func (*ShowAddressesRequest) Reset ¶ added in v0.11.7
func (x *ShowAddressesRequest) Reset()
func (*ShowAddressesRequest) String ¶ added in v0.11.7
func (x *ShowAddressesRequest) String() string
type ShowAddressesResponse ¶ added in v0.11.7
type ShowAddressesResponse struct { Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ShowAddressesResponse) Descriptor
deprecated
added in
v0.11.7
func (*ShowAddressesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShowAddressesResponse.ProtoReflect.Descriptor instead.
func (*ShowAddressesResponse) GetAddress ¶ added in v0.11.7
func (x *ShowAddressesResponse) GetAddress() []string
func (*ShowAddressesResponse) ProtoMessage ¶ added in v0.11.7
func (*ShowAddressesResponse) ProtoMessage()
func (*ShowAddressesResponse) ProtoReflect ¶ added in v0.11.7
func (x *ShowAddressesResponse) ProtoReflect() protoreflect.Message
func (*ShowAddressesResponse) Reset ¶ added in v0.11.7
func (x *ShowAddressesResponse) Reset()
func (*ShowAddressesResponse) String ¶ added in v0.11.7
func (x *ShowAddressesResponse) String() string
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) NewAddress ¶ added in v0.11.7
func (UnimplementedKaspawalletdServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
func (UnimplementedKaspawalletdServer) ShowAddresses ¶ added in v0.11.7
func (UnimplementedKaspawalletdServer) ShowAddresses(context.Context, *ShowAddressesRequest) (*ShowAddressesResponse, error)
func (UnimplementedKaspawalletdServer) Shutdown ¶
func (UnimplementedKaspawalletdServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
type UnsafeKaspawalletdServer ¶ added in v0.11.7
type UnsafeKaspawalletdServer interface {
// contains filtered or unexported methods
}
UnsafeKaspawalletdServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KaspawalletdServer will result in compilation errors.