Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTransferLibServer(s grpc.ServiceRegistrar, srv TransferLibServer)
- type Account
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetAddressTypes() []string
- func (x *GetAccountRequest) GetIndex() int64
- func (x *GetAccountRequest) GetMnemonic() string
- func (x *GetAccountRequest) GetPassword() string
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccounts() map[string]*Account
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- type GetBalanceRequest
- func (*GetBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceRequest) GetAddress() string
- func (x *GetBalanceRequest) GetAddressType() string
- func (x *GetBalanceRequest) GetCurrencies() []string
- func (*GetBalanceRequest) ProtoMessage()
- func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *GetBalanceRequest) Reset()
- func (x *GetBalanceRequest) String() string
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceResponse) GetBalances() map[string]float64
- func (*GetBalanceResponse) ProtoMessage()
- func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *GetBalanceResponse) Reset()
- func (x *GetBalanceResponse) String() string
- type GetTranscationRequest
- func (*GetTranscationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTranscationRequest) GetChain() string
- func (x *GetTranscationRequest) GetTranscationHash() string
- func (*GetTranscationRequest) ProtoMessage()
- func (x *GetTranscationRequest) ProtoReflect() protoreflect.Message
- func (x *GetTranscationRequest) Reset()
- func (x *GetTranscationRequest) String() string
- type GetTranscationResponse
- func (*GetTranscationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTranscationResponse) GetConfirms() uint64
- func (x *GetTranscationResponse) GetCurrency() string
- func (x *GetTranscationResponse) GetFrom() string
- func (x *GetTranscationResponse) GetHeight() uint64
- func (x *GetTranscationResponse) GetResult() bool
- func (x *GetTranscationResponse) GetTimestamp() uint64
- func (x *GetTranscationResponse) GetTo() string
- func (x *GetTranscationResponse) GetValue() float64
- func (*GetTranscationResponse) ProtoMessage()
- func (x *GetTranscationResponse) ProtoReflect() protoreflect.Message
- func (x *GetTranscationResponse) Reset()
- func (x *GetTranscationResponse) String() string
- type TransferLibClient
- type TransferLibServer
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransferRequest) GetChain() string
- func (x *TransferRequest) GetCurrency() string
- func (x *TransferRequest) GetPrivateKey() string
- func (x *TransferRequest) GetTo() string
- func (x *TransferRequest) GetValue() float64
- func (*TransferRequest) ProtoMessage()
- func (x *TransferRequest) ProtoReflect() protoreflect.Message
- func (x *TransferRequest) Reset()
- func (x *TransferRequest) String() string
- type TransferResponse
- type UnimplementedTransferLibServer
- func (UnimplementedTransferLibServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedTransferLibServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
- func (UnimplementedTransferLibServer) GetTranscation(context.Context, *GetTranscationRequest) (*GetTranscationResponse, error)
- func (UnimplementedTransferLibServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
- type UnsafeTransferLibServer
Constants ¶
const ( TransferLib_GetAccount_FullMethodName = "/transfer_lib.TransferLib/GetAccount" TransferLib_GetBalance_FullMethodName = "/transfer_lib.TransferLib/GetBalance" TransferLib_Transfer_FullMethodName = "/transfer_lib.TransferLib/Transfer" TransferLib_GetTranscation_FullMethodName = "/transfer_lib.TransferLib/GetTranscation" )
Variables ¶
var File_transfer_lib_proto protoreflect.FileDescriptor
var TransferLib_ServiceDesc = grpc.ServiceDesc{ ServiceName: "transfer_lib.TransferLib", HandlerType: (*TransferLibServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAccount", Handler: _TransferLib_GetAccount_Handler, }, { MethodName: "GetBalance", Handler: _TransferLib_GetBalance_Handler, }, { MethodName: "Transfer", Handler: _TransferLib_Transfer_Handler, }, { MethodName: "GetTranscation", Handler: _TransferLib_GetTranscation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transfer_lib.proto", }
TransferLib_ServiceDesc is the grpc.ServiceDesc for TransferLib service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTransferLibServer ¶
func RegisterTransferLibServer(s grpc.ServiceRegistrar, srv TransferLibServer)
Types ¶
type Account ¶
type Account struct { PrivateKey string `protobuf:"bytes,1,opt,name=privateKey,proto3" json:"privateKey,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAddress ¶
func (*Account) GetPrivateKey ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type GetAccountRequest ¶
type GetAccountRequest struct { Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` AddressTypes []string `protobuf:"bytes,4,rep,name=addressTypes,proto3" json:"addressTypes,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetAddressTypes ¶
func (x *GetAccountRequest) GetAddressTypes() []string
func (*GetAccountRequest) GetIndex ¶
func (x *GetAccountRequest) GetIndex() int64
func (*GetAccountRequest) GetMnemonic ¶
func (x *GetAccountRequest) GetMnemonic() string
func (*GetAccountRequest) GetPassword ¶
func (x *GetAccountRequest) GetPassword() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type GetAccountResponse ¶
type GetAccountResponse struct { Accounts map[string]*Account `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccounts ¶
func (x *GetAccountResponse) GetAccounts() map[string]*Account
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AddressType string `protobuf:"bytes,2,opt,name=addressType,proto3" json:"addressType,omitempty"` Currencies []string `protobuf:"bytes,3,rep,name=currencies,proto3" json:"currencies,omitempty"` // contains filtered or unexported fields }
func (*GetBalanceRequest) Descriptor
deprecated
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) GetAddress ¶
func (x *GetBalanceRequest) GetAddress() string
func (*GetBalanceRequest) GetAddressType ¶
func (x *GetBalanceRequest) GetAddressType() string
func (*GetBalanceRequest) GetCurrencies ¶
func (x *GetBalanceRequest) GetCurrencies() []string
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 { Balances map[string]float64 `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetBalanceResponse) Descriptor
deprecated
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) GetBalances ¶
func (x *GetBalanceResponse) GetBalances() map[string]float64
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 GetTranscationRequest ¶
type GetTranscationRequest struct { Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` TranscationHash string `protobuf:"bytes,2,opt,name=transcationHash,proto3" json:"transcationHash,omitempty"` // contains filtered or unexported fields }
func (*GetTranscationRequest) Descriptor
deprecated
func (*GetTranscationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTranscationRequest.ProtoReflect.Descriptor instead.
func (*GetTranscationRequest) GetChain ¶
func (x *GetTranscationRequest) GetChain() string
func (*GetTranscationRequest) GetTranscationHash ¶
func (x *GetTranscationRequest) GetTranscationHash() string
func (*GetTranscationRequest) ProtoMessage ¶
func (*GetTranscationRequest) ProtoMessage()
func (*GetTranscationRequest) ProtoReflect ¶
func (x *GetTranscationRequest) ProtoReflect() protoreflect.Message
func (*GetTranscationRequest) Reset ¶
func (x *GetTranscationRequest) Reset()
func (*GetTranscationRequest) String ¶
func (x *GetTranscationRequest) String() string
type GetTranscationResponse ¶
type GetTranscationResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` From string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"` Value float64 `protobuf:"fixed64,7,opt,name=value,proto3" json:"value,omitempty"` Confirms uint64 `protobuf:"varint,8,opt,name=confirms,proto3" json:"confirms,omitempty"` // contains filtered or unexported fields }
func (*GetTranscationResponse) Descriptor
deprecated
func (*GetTranscationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTranscationResponse.ProtoReflect.Descriptor instead.
func (*GetTranscationResponse) GetConfirms ¶
func (x *GetTranscationResponse) GetConfirms() uint64
func (*GetTranscationResponse) GetCurrency ¶
func (x *GetTranscationResponse) GetCurrency() string
func (*GetTranscationResponse) GetFrom ¶
func (x *GetTranscationResponse) GetFrom() string
func (*GetTranscationResponse) GetHeight ¶
func (x *GetTranscationResponse) GetHeight() uint64
func (*GetTranscationResponse) GetResult ¶
func (x *GetTranscationResponse) GetResult() bool
func (*GetTranscationResponse) GetTimestamp ¶
func (x *GetTranscationResponse) GetTimestamp() uint64
func (*GetTranscationResponse) GetTo ¶
func (x *GetTranscationResponse) GetTo() string
func (*GetTranscationResponse) GetValue ¶
func (x *GetTranscationResponse) GetValue() float64
func (*GetTranscationResponse) ProtoMessage ¶
func (*GetTranscationResponse) ProtoMessage()
func (*GetTranscationResponse) ProtoReflect ¶
func (x *GetTranscationResponse) ProtoReflect() protoreflect.Message
func (*GetTranscationResponse) Reset ¶
func (x *GetTranscationResponse) Reset()
func (*GetTranscationResponse) String ¶
func (x *GetTranscationResponse) String() string
type TransferLibClient ¶
type TransferLibClient interface { GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) GetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) GetTranscation(ctx context.Context, in *GetTranscationRequest, opts ...grpc.CallOption) (*GetTranscationResponse, error) }
TransferLibClient is the client API for TransferLib service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransferLibClient ¶
func NewTransferLibClient(cc grpc.ClientConnInterface) TransferLibClient
type TransferLibServer ¶
type TransferLibServer interface { GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) GetTranscation(context.Context, *GetTranscationRequest) (*GetTranscationResponse, error) // contains filtered or unexported methods }
TransferLibServer is the server API for TransferLib service. All implementations must embed UnimplementedTransferLibServer for forward compatibility
type TransferRequest ¶
type TransferRequest struct { Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"` To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"` Value float64 `protobuf:"fixed64,6,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TransferRequest) Descriptor
deprecated
func (*TransferRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.
func (*TransferRequest) GetChain ¶
func (x *TransferRequest) GetChain() string
func (*TransferRequest) GetCurrency ¶
func (x *TransferRequest) GetCurrency() string
func (*TransferRequest) GetPrivateKey ¶
func (x *TransferRequest) GetPrivateKey() string
func (*TransferRequest) GetTo ¶
func (x *TransferRequest) GetTo() string
func (*TransferRequest) GetValue ¶
func (x *TransferRequest) GetValue() float64
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) ProtoReflect ¶
func (x *TransferRequest) ProtoReflect() protoreflect.Message
func (*TransferRequest) Reset ¶
func (x *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (x *TransferRequest) String() string
type TransferResponse ¶
type TransferResponse struct { TranscationHash string `protobuf:"bytes,1,opt,name=transcationHash,proto3" json:"transcationHash,omitempty"` // contains filtered or unexported fields }
func (*TransferResponse) Descriptor
deprecated
func (*TransferResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.
func (*TransferResponse) GetTranscationHash ¶
func (x *TransferResponse) GetTranscationHash() string
func (*TransferResponse) ProtoMessage ¶
func (*TransferResponse) ProtoMessage()
func (*TransferResponse) ProtoReflect ¶
func (x *TransferResponse) ProtoReflect() protoreflect.Message
func (*TransferResponse) Reset ¶
func (x *TransferResponse) Reset()
func (*TransferResponse) String ¶
func (x *TransferResponse) String() string
type UnimplementedTransferLibServer ¶
type UnimplementedTransferLibServer struct { }
UnimplementedTransferLibServer must be embedded to have forward compatible implementations.
func (UnimplementedTransferLibServer) GetAccount ¶
func (UnimplementedTransferLibServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedTransferLibServer) GetBalance ¶
func (UnimplementedTransferLibServer) GetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
func (UnimplementedTransferLibServer) GetTranscation ¶
func (UnimplementedTransferLibServer) GetTranscation(context.Context, *GetTranscationRequest) (*GetTranscationResponse, error)
func (UnimplementedTransferLibServer) Transfer ¶
func (UnimplementedTransferLibServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
type UnsafeTransferLibServer ¶
type UnsafeTransferLibServer interface {
// contains filtered or unexported methods
}
UnsafeTransferLibServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransferLibServer will result in compilation errors.