Documentation
¶
Overview ¶
Package cli is a generated protocol buffer package.
It is generated from these files:
cli.proto
It has these top-level messages:
GetBalanceRequest GetBalanceResponse Balance SendRequest SendResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCliServiceServer ¶
func RegisterCliServiceServer(s *grpc.Server, srv CliServiceServer)
Types ¶
type Balance ¶
type Balance struct { Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Balance int64 `protobuf:"varint,2,opt,name=balance" json:"balance,omitempty"` }
func (*Balance) Descriptor ¶
func (*Balance) GetAddress ¶
func (*Balance) GetBalance ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
type CliServiceClient ¶
type CliServiceClient interface { Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) }
func NewCliServiceClient ¶
func NewCliServiceClient(cc *grpc.ClientConn) CliServiceClient
type CliServiceServer ¶
type CliServiceServer interface { Send(context.Context, *SendRequest) (*SendResponse, error) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) }
type GetBalanceRequest ¶
type GetBalanceRequest struct { }
func (*GetBalanceRequest) Descriptor ¶
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) Reset ¶
func (m *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (m *GetBalanceRequest) String() string
type GetBalanceResponse ¶
type GetBalanceResponse struct {
Addresses []*Balance `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
}
func (*GetBalanceResponse) Descriptor ¶
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
func (*GetBalanceResponse) GetAddresses ¶
func (m *GetBalanceResponse) GetAddresses() []*Balance
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) Reset ¶
func (m *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (m *GetBalanceResponse) String() string
type SendRequest ¶
type SendRequest struct { ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress" json:"to_address,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` }
func (*SendRequest) Descriptor ¶
func (*SendRequest) Descriptor() ([]byte, []int)
func (*SendRequest) GetAmount ¶
func (m *SendRequest) GetAmount() int64
func (*SendRequest) GetToAddress ¶
func (m *SendRequest) GetToAddress() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) Reset ¶
func (m *SendRequest) Reset()
func (*SendRequest) String ¶
func (m *SendRequest) String() string
type SendResponse ¶
type SendResponse struct {
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId" json:"tx_id,omitempty"`
}
func (*SendResponse) Descriptor ¶
func (*SendResponse) Descriptor() ([]byte, []int)
func (*SendResponse) GetTxId ¶
func (m *SendResponse) GetTxId() string
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) Reset ¶
func (m *SendResponse) Reset()
func (*SendResponse) String ¶
func (m *SendResponse) String() string
Click to show internal directories.
Click to hide internal directories.