Versions in this module Expand all Collapse all v0 v0.1.0 Feb 28, 2019 Changes in this version + var TransferCode_name = map[int32]string + var TransferCode_value = map[string]int32 + func RegisterProcessorServiceHandlers(s *tcprpc.Server, prefix string, srv ProcessorServiceInterface) + type GetBalanceRequest struct + Account uint64 + func (*GetBalanceRequest) Descriptor() ([]byte, []int) + func (*GetBalanceRequest) ProtoMessage() + func (m *GetBalanceRequest) GetAccount() uint64 + func (m *GetBalanceRequest) Reset() + func (m *GetBalanceRequest) String() string + type GetBalanceResponse struct + Balance int64 + Status *Status + func (*GetBalanceResponse) Descriptor() ([]byte, []int) + func (*GetBalanceResponse) ProtoMessage() + func (m *GetBalanceResponse) GetBalance() int64 + func (m *GetBalanceResponse) GetStatus() *Status + func (m *GetBalanceResponse) Reset() + func (m *GetBalanceResponse) String() string + type GetLastSettingsRequest struct + Account uint64 + func (*GetLastSettingsRequest) Descriptor() ([]byte, []int) + func (*GetLastSettingsRequest) ProtoMessage() + func (m *GetLastSettingsRequest) GetAccount() uint64 + func (m *GetLastSettingsRequest) Reset() + func (m *GetLastSettingsRequest) String() string + type GetLastSettingsResponse struct + Account uint64 + DataHash string + Hash string + Id uint64 + PrevHash string + PublicKey string + Sign string + Status *Status + VerifyTransferSign bool + func (*GetLastSettingsResponse) Descriptor() ([]byte, []int) + func (*GetLastSettingsResponse) ProtoMessage() + func (m *GetLastSettingsResponse) GetAccount() uint64 + func (m *GetLastSettingsResponse) GetDataHash() string + func (m *GetLastSettingsResponse) GetHash() string + func (m *GetLastSettingsResponse) GetId() uint64 + func (m *GetLastSettingsResponse) GetPrevHash() string + func (m *GetLastSettingsResponse) GetPublicKey() string + func (m *GetLastSettingsResponse) GetSign() string + func (m *GetLastSettingsResponse) GetStatus() *Status + func (m *GetLastSettingsResponse) GetVerifyTransferSign() bool + func (m *GetLastSettingsResponse) Reset() + func (m *GetLastSettingsResponse) String() string + type GetPrevHashRequest struct + Account uint64 + func (*GetPrevHashRequest) Descriptor() ([]byte, []int) + func (*GetPrevHashRequest) ProtoMessage() + func (m *GetPrevHashRequest) GetAccount() uint64 + func (m *GetPrevHashRequest) Reset() + func (m *GetPrevHashRequest) String() string + type GetPrevHashResponse struct + Hash string + Status *Status + func (*GetPrevHashResponse) Descriptor() ([]byte, []int) + func (*GetPrevHashResponse) ProtoMessage() + func (m *GetPrevHashResponse) GetHash() string + func (m *GetPrevHashResponse) GetStatus() *Status + func (m *GetPrevHashResponse) Reset() + func (m *GetPrevHashResponse) String() string + type ProcessorServiceInterface interface + GetBalance func(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) + GetLastSettings func(context.Context, *GetLastSettingsRequest) (*GetLastSettingsResponse, error) + GetPrevHash func(context.Context, *GetPrevHashRequest) (*GetPrevHashResponse, error) + ProcessTransfer func(context.Context, *TransferRequest) (*TransferResponse, error) + UpdateSettings func(context.Context, *SettingsRequest) (*SettingsResponse, error) + type RouteMap struct + Nodes []string + Target string + Type uint32 + Version uint32 + func (*RouteMap) Descriptor() ([]byte, []int) + func (*RouteMap) ProtoMessage() + func (m *RouteMap) GetNodes() []string + func (m *RouteMap) GetTarget() string + func (m *RouteMap) GetType() uint32 + func (m *RouteMap) GetVersion() uint32 + func (m *RouteMap) Reset() + func (m *RouteMap) String() string + type SettingsRequest struct + Account uint64 + DataHash string + PrevHash string + PublicKey string + Sign string + VerifyTransferSign bool + func (*SettingsRequest) Descriptor() ([]byte, []int) + func (*SettingsRequest) ProtoMessage() + func (m *SettingsRequest) GetAccount() uint64 + func (m *SettingsRequest) GetDataHash() string + func (m *SettingsRequest) GetPrevHash() string + func (m *SettingsRequest) GetPublicKey() string + func (m *SettingsRequest) GetSign() string + func (m *SettingsRequest) GetVerifyTransferSign() bool + func (m *SettingsRequest) Reset() + func (m *SettingsRequest) String() string + type SettingsResponse struct + Hash string + SettingsId string + Status *Status + func (*SettingsResponse) Descriptor() ([]byte, []int) + func (*SettingsResponse) ProtoMessage() + func (m *SettingsResponse) GetHash() string + func (m *SettingsResponse) GetSettingsId() string + func (m *SettingsResponse) GetStatus() *Status + func (m *SettingsResponse) Reset() + func (m *SettingsResponse) String() string + type Status struct + Code TransferCode + Details []*google_protobuf.Any + Message string + func (*Status) Descriptor() ([]byte, []int) + func (*Status) ProtoMessage() + func (m *Status) GetCode() TransferCode + func (m *Status) GetDetails() []*google_protobuf.Any + func (m *Status) GetMessage() string + func (m *Status) Reset() + func (m *Status) String() string + type TCPRPCProcessorServiceClient struct + func NewTCPRPCProcessorServiceClient(cl *tcprpc.Client, pref string) TCPRPCProcessorServiceClient + func (cl TCPRPCProcessorServiceClient) GetBalance(ctx context.Context, args *GetBalanceRequest) (*GetBalanceResponse, error) + func (cl TCPRPCProcessorServiceClient) GetLastSettings(ctx context.Context, args *GetLastSettingsRequest) (*GetLastSettingsResponse, error) + func (cl TCPRPCProcessorServiceClient) GetPrevHash(ctx context.Context, args *GetPrevHashRequest) (*GetPrevHashResponse, error) + func (cl TCPRPCProcessorServiceClient) ProcessTransfer(ctx context.Context, args *TransferRequest) (*TransferResponse, error) + func (cl TCPRPCProcessorServiceClient) UpdateSettings(ctx context.Context, args *SettingsRequest) (*SettingsResponse, error) + type TestRouteMapAnotherType struct + Nodes []string + Target string + Type uint32 + Version uint32 + func (*TestRouteMapAnotherType) Descriptor() ([]byte, []int) + func (*TestRouteMapAnotherType) ProtoMessage() + func (m *TestRouteMapAnotherType) GetNodes() []string + func (m *TestRouteMapAnotherType) GetTarget() string + func (m *TestRouteMapAnotherType) GetType() uint32 + func (m *TestRouteMapAnotherType) GetVersion() uint32 + func (m *TestRouteMapAnotherType) Reset() + func (m *TestRouteMapAnotherType) String() string + type TransferCode int32 + const TransferCode_BAD_REQUEST + const TransferCode_INTERNAL_ERROR + const TransferCode_INVALID_PREV_HASH + const TransferCode_INVALID_SIGN + const TransferCode_NO_BALANCE + const TransferCode_OK + const TransferCode_RETRY + const TransferCode_SEE_OTHER + func (TransferCode) EnumDescriptor() ([]byte, []int) + func (x TransferCode) String() string + type TransferItem struct + Amount int64 + Receiver uint64 + func (*TransferItem) Descriptor() ([]byte, []int) + func (*TransferItem) ProtoMessage() + func (m *TransferItem) GetAmount() int64 + func (m *TransferItem) GetReceiver() uint64 + func (m *TransferItem) Reset() + func (m *TransferItem) String() string + type TransferRequest struct + Batch []*TransferItem + PrevHash string + Sender uint64 + SettingsId uint64 + Sign string + func (*TransferRequest) Descriptor() ([]byte, []int) + func (*TransferRequest) ProtoMessage() + func (m *TransferRequest) GetBatch() []*TransferItem + func (m *TransferRequest) GetPrevHash() string + func (m *TransferRequest) GetSender() uint64 + func (m *TransferRequest) GetSettingsId() uint64 + func (m *TransferRequest) GetSign() string + func (m *TransferRequest) Reset() + func (m *TransferRequest) String() string + type TransferResponse struct + Account uint64 + Hash string + Id uint64 + SettingsId uint64 + Status *Status + TxnId string + func (*TransferResponse) Descriptor() ([]byte, []int) + func (*TransferResponse) ProtoMessage() + func (m *TransferResponse) GetAccount() uint64 + func (m *TransferResponse) GetHash() string + func (m *TransferResponse) GetId() uint64 + func (m *TransferResponse) GetSettingsId() uint64 + func (m *TransferResponse) GetStatus() *Status + func (m *TransferResponse) GetTxnId() string + func (m *TransferResponse) Reset() + func (m *TransferResponse) String() string