Documentation
¶
Overview ¶
Package server is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
Balance TransferRequest TransferResult AddressInfo TransactionInfoRequest TransactionInfo AddressInfoRequest WalletInfo
Index ¶
- func RegisterExampleAPIServer(s *grpc.Server, srv ExampleAPIServer)
- func StartRPCServer(env *service.Env) error
- type AddressInfo
- type AddressInfoRequest
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (m *Balance) GetBalance() string
- func (m *Balance) GetFrozen() string
- func (m *Balance) GetName() string
- func (m *Balance) GetPropertyID() int32
- func (m *Balance) GetReserved() string
- func (*Balance) ProtoMessage()
- func (m *Balance) Reset()
- func (m *Balance) String() string
- type ExampleAPIClient
- type ExampleAPIServer
- type ExampleAPI_ListAddressesClient
- type ExampleAPI_ListAddressesServer
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)
- func (m *TransactionInfo) GetBlockTime() int32
- func (m *TransactionInfo) GetConfirmations() int32
- func (m *TransactionInfo) GetFee() string
- func (m *TransactionInfo) GetIsMine() bool
- func (m *TransactionInfo) GetPositioninBlock() int32
- func (m *TransactionInfo) GetReferencAaddress() string
- func (m *TransactionInfo) GetSendingAddress() string
- func (m *TransactionInfo) GetTxID() string
- func (m *TransactionInfo) GetType() string
- func (m *TransactionInfo) GetTypeInt() int32
- func (m *TransactionInfo) GetValid() bool
- func (m *TransactionInfo) GetVersion() int32
- func (*TransactionInfo) ProtoMessage()
- func (m *TransactionInfo) Reset()
- func (m *TransactionInfo) String() string
- type TransactionInfoRequest
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)
- func (m *TransferRequest) GetAmount() string
- func (m *TransferRequest) GetFromaddress() string
- func (m *TransferRequest) GetPropertyid() string
- func (m *TransferRequest) GetToaddress() string
- func (*TransferRequest) ProtoMessage()
- func (m *TransferRequest) Reset()
- func (m *TransferRequest) String() string
- type TransferResult
- type WalletInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleAPIServer ¶
func RegisterExampleAPIServer(s *grpc.Server, srv ExampleAPIServer)
Types ¶
type AddressInfo ¶
type AddressInfo struct {
Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Balances []*Balance `protobuf:"bytes,2,rep,name=balances" json:"balances,omitempty"`
}
func (*AddressInfo) Descriptor ¶
func (*AddressInfo) Descriptor() ([]byte, []int)
func (*AddressInfo) GetAddress ¶
func (m *AddressInfo) GetAddress() string
func (*AddressInfo) GetBalances ¶
func (m *AddressInfo) GetBalances() []*Balance
func (*AddressInfo) ProtoMessage ¶
func (*AddressInfo) ProtoMessage()
func (*AddressInfo) Reset ¶
func (m *AddressInfo) Reset()
func (*AddressInfo) String ¶
func (m *AddressInfo) String() string
type AddressInfoRequest ¶
type AddressInfoRequest struct {
Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
}
func (*AddressInfoRequest) Descriptor ¶
func (*AddressInfoRequest) Descriptor() ([]byte, []int)
func (*AddressInfoRequest) GetAddress ¶
func (m *AddressInfoRequest) GetAddress() string
func (*AddressInfoRequest) ProtoMessage ¶
func (*AddressInfoRequest) ProtoMessage()
func (*AddressInfoRequest) Reset ¶
func (m *AddressInfoRequest) Reset()
func (*AddressInfoRequest) String ¶
func (m *AddressInfoRequest) String() string
type Balance ¶
type Balance struct {
PropertyID int32 `protobuf:"varint,1,opt,name=propertyID" json:"propertyID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Balance string `protobuf:"bytes,3,opt,name=balance" json:"balance,omitempty"`
Reserved string `protobuf:"bytes,4,opt,name=reserved" json:"reserved,omitempty"`
Frozen string `protobuf:"bytes,5,opt,name=frozen" json:"frozen,omitempty"`
}
func (*Balance) Descriptor ¶
func (*Balance) GetBalance ¶
func (*Balance) GetPropertyID ¶
func (*Balance) GetReserved ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
type ExampleAPIClient ¶
type ExampleAPIClient interface {
// NewAddress returns new generated address
NewAddress(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*AddressInfo, error)
// Transfer transfers funcs to an address
Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResult, error)
// ListAddresses lists existing addresses for account
ListAddresses(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (ExampleAPI_ListAddressesClient, error)
// GetTransactionInfo returns info about transaction
GetTransactionInfo(ctx context.Context, in *TransactionInfoRequest, opts ...grpc.CallOption) (*TransactionInfo, error)
// GetWalletInfo returns info about wallet
GetWalletInfo(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*WalletInfo, error)
// GetAddressInfo returns info about address
GetAddressInfo(ctx context.Context, in *AddressInfoRequest, opts ...grpc.CallOption) (*AddressInfo, error)
}
func NewExampleAPIClient ¶
func NewExampleAPIClient(cc *grpc.ClientConn) ExampleAPIClient
type ExampleAPIServer ¶
type ExampleAPIServer interface {
// NewAddress returns new generated address
NewAddress(context.Context, *google_protobuf1.Empty) (*AddressInfo, error)
// Transfer transfers funcs to an address
Transfer(context.Context, *TransferRequest) (*TransferResult, error)
// ListAddresses lists existing addresses for account
ListAddresses(*google_protobuf1.Empty, ExampleAPI_ListAddressesServer) error
// GetTransactionInfo returns info about transaction
GetTransactionInfo(context.Context, *TransactionInfoRequest) (*TransactionInfo, error)
// GetWalletInfo returns info about wallet
GetWalletInfo(context.Context, *google_protobuf1.Empty) (*WalletInfo, error)
// GetAddressInfo returns info about address
GetAddressInfo(context.Context, *AddressInfoRequest) (*AddressInfo, error)
}
type ExampleAPI_ListAddressesClient ¶
type ExampleAPI_ListAddressesClient interface {
Recv() (*AddressInfo, error)
grpc.ClientStream
}
type ExampleAPI_ListAddressesServer ¶
type ExampleAPI_ListAddressesServer interface {
Send(*AddressInfo) error
grpc.ServerStream
}
type TransactionInfo ¶
type TransactionInfo struct {
TxID string `protobuf:"bytes,1,opt,name=txID" json:"txID,omitempty"`
SendingAddress string `protobuf:"bytes,2,opt,name=sendingAddress" json:"sendingAddress,omitempty"`
ReferencAaddress string `protobuf:"bytes,3,opt,name=referencAaddress" json:"referencAaddress,omitempty"`
IsMine bool `protobuf:"varint,4,opt,name=isMine" json:"isMine,omitempty"`
Confirmations int32 `protobuf:"varint,5,opt,name=confirmations" json:"confirmations,omitempty"`
Fee string `protobuf:"bytes,6,opt,name=fee" json:"fee,omitempty"`
BlockTime int32 `protobuf:"varint,7,opt,name=blockTime" json:"blockTime,omitempty"`
Valid bool `protobuf:"varint,8,opt,name=valid" json:"valid,omitempty"`
PositioninBlock int32 `protobuf:"varint,9,opt,name=positioninBlock" json:"positioninBlock,omitempty"`
Version int32 `protobuf:"varint,10,opt,name=version" json:"version,omitempty"`
TypeInt int32 `protobuf:"varint,11,opt,name=typeInt" json:"typeInt,omitempty"`
Type string `protobuf:"bytes,12,opt,name=type" json:"type,omitempty"`
}
func (*TransactionInfo) Descriptor ¶
func (*TransactionInfo) Descriptor() ([]byte, []int)
func (*TransactionInfo) GetBlockTime ¶
func (m *TransactionInfo) GetBlockTime() int32
func (*TransactionInfo) GetConfirmations ¶
func (m *TransactionInfo) GetConfirmations() int32
func (*TransactionInfo) GetFee ¶
func (m *TransactionInfo) GetFee() string
func (*TransactionInfo) GetIsMine ¶
func (m *TransactionInfo) GetIsMine() bool
func (*TransactionInfo) GetPositioninBlock ¶
func (m *TransactionInfo) GetPositioninBlock() int32
func (*TransactionInfo) GetReferencAaddress ¶
func (m *TransactionInfo) GetReferencAaddress() string
func (*TransactionInfo) GetSendingAddress ¶
func (m *TransactionInfo) GetSendingAddress() string
func (*TransactionInfo) GetTxID ¶
func (m *TransactionInfo) GetTxID() string
func (*TransactionInfo) GetType ¶
func (m *TransactionInfo) GetType() string
func (*TransactionInfo) GetTypeInt ¶
func (m *TransactionInfo) GetTypeInt() int32
func (*TransactionInfo) GetValid ¶
func (m *TransactionInfo) GetValid() bool
func (*TransactionInfo) GetVersion ¶
func (m *TransactionInfo) GetVersion() int32
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) Reset ¶
func (m *TransactionInfo) Reset()
func (*TransactionInfo) String ¶
func (m *TransactionInfo) String() string
type TransactionInfoRequest ¶
type TransactionInfoRequest struct {
TxID string `protobuf:"bytes,1,opt,name=txID" json:"txID,omitempty"`
}
func (*TransactionInfoRequest) Descriptor ¶
func (*TransactionInfoRequest) Descriptor() ([]byte, []int)
func (*TransactionInfoRequest) GetTxID ¶
func (m *TransactionInfoRequest) GetTxID() string
func (*TransactionInfoRequest) ProtoMessage ¶
func (*TransactionInfoRequest) ProtoMessage()
func (*TransactionInfoRequest) Reset ¶
func (m *TransactionInfoRequest) Reset()
func (*TransactionInfoRequest) String ¶
func (m *TransactionInfoRequest) String() string
type TransferRequest ¶
type TransferRequest struct {
Fromaddress string `protobuf:"bytes,1,opt,name=fromaddress" json:"fromaddress,omitempty"`
Toaddress string `protobuf:"bytes,2,opt,name=toaddress" json:"toaddress,omitempty"`
Propertyid string `protobuf:"bytes,3,opt,name=propertyid" json:"propertyid,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount" json:"amount,omitempty"`
}
func (*TransferRequest) Descriptor ¶
func (*TransferRequest) Descriptor() ([]byte, []int)
func (*TransferRequest) GetAmount ¶
func (m *TransferRequest) GetAmount() string
func (*TransferRequest) GetFromaddress ¶
func (m *TransferRequest) GetFromaddress() string
func (*TransferRequest) GetPropertyid ¶
func (m *TransferRequest) GetPropertyid() string
func (*TransferRequest) GetToaddress ¶
func (m *TransferRequest) GetToaddress() string
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) Reset ¶
func (m *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (m *TransferRequest) String() string
type TransferResult ¶
type TransferResult struct {
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
}
func (*TransferResult) Descriptor ¶
func (*TransferResult) Descriptor() ([]byte, []int)
func (*TransferResult) GetHash ¶
func (m *TransferResult) GetHash() string
func (*TransferResult) ProtoMessage ¶
func (*TransferResult) ProtoMessage()
func (*TransferResult) Reset ¶
func (m *TransferResult) Reset()
func (*TransferResult) String ¶
func (m *TransferResult) String() string
type WalletInfo ¶
type WalletInfo struct {
Balances []*Balance `protobuf:"bytes,1,rep,name=balances" json:"balances,omitempty"`
}
func (*WalletInfo) Descriptor ¶
func (*WalletInfo) Descriptor() ([]byte, []int)
func (*WalletInfo) GetBalances ¶
func (m *WalletInfo) GetBalances() []*Balance
func (*WalletInfo) ProtoMessage ¶
func (*WalletInfo) ProtoMessage()
func (*WalletInfo) Reset ¶
func (m *WalletInfo) Reset()
func (*WalletInfo) String ¶
func (m *WalletInfo) String() string
Click to show internal directories.
Click to hide internal directories.