pb

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: ISC Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 (*CreateUnsignedTransactionRequest) ProtoMessage

func (*CreateUnsignedTransactionRequest) ProtoMessage()

func (*CreateUnsignedTransactionRequest) ProtoReflect

func (*CreateUnsignedTransactionRequest) Reset

func (*CreateUnsignedTransactionRequest) 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 (*CreateUnsignedTransactionResponse) Reset

func (*CreateUnsignedTransactionResponse) 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 (*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.

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) GetBalance

func (*UnimplementedKaspawalletdServer) GetReceiveAddress

func (*UnimplementedKaspawalletdServer) Shutdown

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL