Documentation ¶
Index ¶
- Variables
- func RegisterApiServer(s *grpc.Server, srv ApiServer)
- type ApiClient
- type ApiServer
- type Api_GetTracesClient
- type Api_GetTracesServer
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetDifficulty() int32
- func (x *Block) GetHash() []byte
- func (x *Block) GetIndex() string
- func (x *Block) GetNonce() string
- func (x *Block) GetPrevHash() []byte
- func (x *Block) GetReceiptHash() []byte
- func (x *Block) GetTimestamp() int64
- func (x *Block) GetTransactionHashRoot() []byte
- func (x *Block) GetTransactions() []*Transactions
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockChainReq
- type BlockChainRes
- func (*BlockChainRes) Descriptor() ([]byte, []int)deprecated
- func (x *BlockChainRes) GetBlock() *Block
- func (x *BlockChainRes) GetCurrentHash() string
- func (x *BlockChainRes) GetPrevHash() string
- func (*BlockChainRes) ProtoMessage()
- func (x *BlockChainRes) ProtoReflect() protoreflect.Message
- func (x *BlockChainRes) Reset()
- func (x *BlockChainRes) String() string
- type Context
- type CreateBlockInput
- func (*CreateBlockInput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBlockInput) GetContext() *Context
- func (x *CreateBlockInput) GetPrivKey() []byte
- func (*CreateBlockInput) ProtoMessage()
- func (x *CreateBlockInput) ProtoReflect() protoreflect.Message
- func (x *CreateBlockInput) Reset()
- func (x *CreateBlockInput) String() string
- type CreateBlockOutput
- type CreateWalletInput
- func (*CreateWalletInput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWalletInput) GetContext() *Context
- func (x *CreateWalletInput) GetPassword() []byte
- func (*CreateWalletInput) ProtoMessage()
- func (x *CreateWalletInput) ProtoReflect() protoreflect.Message
- func (x *CreateWalletInput) Reset()
- func (x *CreateWalletInput) String() string
- type CreateWalletOutput
- func (*CreateWalletOutput) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWalletOutput) GetAddress() []byte
- func (x *CreateWalletOutput) GetMnemonic() []byte
- func (x *CreateWalletOutput) GetPrivKey() []byte
- func (x *CreateWalletOutput) GetPubKey() []byte
- func (*CreateWalletOutput) ProtoMessage()
- func (x *CreateWalletOutput) ProtoReflect() protoreflect.Message
- func (x *CreateWalletOutput) Reset()
- func (x *CreateWalletOutput) String() string
- type GetBalanceInput
- func (*GetBalanceInput) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceInput) GetContext() *Context
- func (x *GetBalanceInput) GetPrivKey() []byte
- func (*GetBalanceInput) ProtoMessage()
- func (x *GetBalanceInput) ProtoReflect() protoreflect.Message
- func (x *GetBalanceInput) Reset()
- func (x *GetBalanceInput) String() string
- type GetBalanceOutput
- func (*GetBalanceOutput) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceOutput) GetAddress() string
- func (x *GetBalanceOutput) GetBalance() string
- func (x *GetBalanceOutput) GetTotalReceived() string
- func (x *GetBalanceOutput) GetTotalSent() string
- func (*GetBalanceOutput) ProtoMessage()
- func (x *GetBalanceOutput) ProtoReflect() protoreflect.Message
- func (x *GetBalanceOutput) Reset()
- func (x *GetBalanceOutput) String() string
- type GetWalletInput
- func (*GetWalletInput) Descriptor() ([]byte, []int)deprecated
- func (x *GetWalletInput) GetContext() *Context
- func (x *GetWalletInput) GetMnemonic() []byte
- func (x *GetWalletInput) GetPassword() []byte
- func (*GetWalletInput) ProtoMessage()
- func (x *GetWalletInput) ProtoReflect() protoreflect.Message
- func (x *GetWalletInput) Reset()
- func (x *GetWalletInput) String() string
- type GetWalletOutput
- func (*GetWalletOutput) Descriptor() ([]byte, []int)deprecated
- func (x *GetWalletOutput) GetAddress() []byte
- func (x *GetWalletOutput) GetPrivKey() []byte
- func (x *GetWalletOutput) GetPubKey() []byte
- func (x *GetWalletOutput) GetTimestamp() string
- func (*GetWalletOutput) ProtoMessage()
- func (x *GetWalletOutput) ProtoReflect() protoreflect.Message
- func (x *GetWalletOutput) Reset()
- func (x *GetWalletOutput) String() string
- type Ping
- type Pong
- type SendBlockInput
- func (*SendBlockInput) Descriptor() ([]byte, []int)deprecated
- func (x *SendBlockInput) GetAmount() string
- func (x *SendBlockInput) GetFrom() string
- func (x *SendBlockInput) GetTo() string
- func (*SendBlockInput) ProtoMessage()
- func (x *SendBlockInput) ProtoReflect() protoreflect.Message
- func (x *SendBlockInput) Reset()
- func (x *SendBlockInput) String() string
- type SendBlockOutput
- type TraceInput
- type TraceOutput
- type Transactions
- func (*Transactions) Descriptor() ([]byte, []int)deprecated
- func (x *Transactions) GetId() []byte
- func (x *Transactions) GetInputs() []*TxInput
- func (x *Transactions) GetOutputs() []*TxOutput
- func (x *Transactions) GetTimestamp() int64
- func (*Transactions) ProtoMessage()
- func (x *Transactions) ProtoReflect() protoreflect.Message
- func (x *Transactions) Reset()
- func (x *Transactions) String() string
- type TxInput
- type TxOutput
- type UnimplementedApiServer
- func (*UnimplementedApiServer) CreateBlock(context.Context, *CreateBlockInput) (*CreateBlockOutput, error)
- func (*UnimplementedApiServer) CreateWallet(context.Context, *CreateWalletInput) (*CreateWalletOutput, error)
- func (*UnimplementedApiServer) GetBalance(context.Context, *GetBalanceInput) (*GetBalanceOutput, error)
- func (*UnimplementedApiServer) GetBlockChain(context.Context, *Ping) (*Pong, error)
- func (*UnimplementedApiServer) GetPong(context.Context, *Ping) (*Pong, error)
- func (*UnimplementedApiServer) GetServersAddress(context.Context, *Ping) (*Pong, error)
- func (*UnimplementedApiServer) GetTraces(*TraceInput, Api_GetTracesServer) error
- func (*UnimplementedApiServer) GetWallet(context.Context, *GetWalletInput) (*GetWalletOutput, error)
- func (*UnimplementedApiServer) GetWallets(context.Context, *Ping) (*Pong, error)
- func (*UnimplementedApiServer) SendBlock(context.Context, *SendBlockInput) (*SendBlockOutput, error)
- func (*UnimplementedApiServer) ValidWallet(context.Context, *ValidWalletInput) (*ValidWalletOutput, error)
- type ValidWalletInput
- func (*ValidWalletInput) Descriptor() ([]byte, []int)deprecated
- func (x *ValidWalletInput) GetContext() *Context
- func (x *ValidWalletInput) GetPrivKey() []byte
- func (*ValidWalletInput) ProtoMessage()
- func (x *ValidWalletInput) ProtoReflect() protoreflect.Message
- func (x *ValidWalletInput) Reset()
- func (x *ValidWalletInput) String() string
- type ValidWalletOutput
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterApiServer ¶
Types ¶
type ApiClient ¶
type ApiClient interface { GetPong(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error) // rpc GetBlockChain(BlockChainReq) returns (stream BlockChainRes) {} GetBalance(ctx context.Context, in *GetBalanceInput, opts ...grpc.CallOption) (*GetBalanceOutput, error) CreateBlock(ctx context.Context, in *CreateBlockInput, opts ...grpc.CallOption) (*CreateBlockOutput, error) SendBlock(ctx context.Context, in *SendBlockInput, opts ...grpc.CallOption) (*SendBlockOutput, error) GetWallets(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error) GetBlockChain(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error) CreateWallet(ctx context.Context, in *CreateWalletInput, opts ...grpc.CallOption) (*CreateWalletOutput, error) ValidWallet(ctx context.Context, in *ValidWalletInput, opts ...grpc.CallOption) (*ValidWalletOutput, error) GetWallet(ctx context.Context, in *GetWalletInput, opts ...grpc.CallOption) (*GetWalletOutput, error) GetServersAddress(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Pong, error) GetTraces(ctx context.Context, in *TraceInput, opts ...grpc.CallOption) (Api_GetTracesClient, error) }
ApiClient is the client API for Api service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewApiClient ¶
func NewApiClient(cc grpc.ClientConnInterface) ApiClient
type ApiServer ¶
type ApiServer interface { GetPong(context.Context, *Ping) (*Pong, error) // rpc GetBlockChain(BlockChainReq) returns (stream BlockChainRes) {} GetBalance(context.Context, *GetBalanceInput) (*GetBalanceOutput, error) CreateBlock(context.Context, *CreateBlockInput) (*CreateBlockOutput, error) SendBlock(context.Context, *SendBlockInput) (*SendBlockOutput, error) GetWallets(context.Context, *Ping) (*Pong, error) GetBlockChain(context.Context, *Ping) (*Pong, error) CreateWallet(context.Context, *CreateWalletInput) (*CreateWalletOutput, error) ValidWallet(context.Context, *ValidWalletInput) (*ValidWalletOutput, error) GetWallet(context.Context, *GetWalletInput) (*GetWalletOutput, error) GetServersAddress(context.Context, *Ping) (*Pong, error) GetTraces(*TraceInput, Api_GetTracesServer) error }
ApiServer is the server API for Api service.
type Api_GetTracesClient ¶
type Api_GetTracesClient interface { Recv() (*TraceOutput, error) grpc.ClientStream }
type Api_GetTracesServer ¶
type Api_GetTracesServer interface { Send(*TraceOutput) error grpc.ServerStream }
type Block ¶
type Block struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Transactions []*Transactions `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` PrevHash []byte `protobuf:"bytes,5,opt,name=prevHash,proto3" json:"prevHash,omitempty"` ReceiptHash []byte `protobuf:"bytes,6,opt,name=receiptHash,proto3" json:"receiptHash,omitempty"` TransactionHashRoot []byte `protobuf:"bytes,7,opt,name=transactionHashRoot,proto3" json:"transactionHashRoot,omitempty"` Difficulty int32 `protobuf:"varint,8,opt,name=difficulty,proto3" json:"difficulty,omitempty"` Nonce string `protobuf:"bytes,9,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetDifficulty ¶
func (*Block) GetPrevHash ¶
func (*Block) GetReceiptHash ¶
func (*Block) GetTimestamp ¶
func (*Block) GetTransactionHashRoot ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transactions
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockChainReq ¶
type BlockChainReq struct {
// contains filtered or unexported fields
}
func (*BlockChainReq) Descriptor
deprecated
func (*BlockChainReq) Descriptor() ([]byte, []int)
Deprecated: Use BlockChainReq.ProtoReflect.Descriptor instead.
func (*BlockChainReq) ProtoMessage ¶
func (*BlockChainReq) ProtoMessage()
func (*BlockChainReq) ProtoReflect ¶
func (x *BlockChainReq) ProtoReflect() protoreflect.Message
func (*BlockChainReq) Reset ¶
func (x *BlockChainReq) Reset()
func (*BlockChainReq) String ¶
func (x *BlockChainReq) String() string
type BlockChainRes ¶
type BlockChainRes struct { PrevHash string `protobuf:"bytes,1,opt,name=prevHash,proto3" json:"prevHash,omitempty"` Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` CurrentHash string `protobuf:"bytes,3,opt,name=currentHash,proto3" json:"currentHash,omitempty"` // optional string error = 4; // contains filtered or unexported fields }
func (*BlockChainRes) Descriptor
deprecated
func (*BlockChainRes) Descriptor() ([]byte, []int)
Deprecated: Use BlockChainRes.ProtoReflect.Descriptor instead.
func (*BlockChainRes) GetBlock ¶
func (x *BlockChainRes) GetBlock() *Block
func (*BlockChainRes) GetCurrentHash ¶
func (x *BlockChainRes) GetCurrentHash() string
func (*BlockChainRes) GetPrevHash ¶
func (x *BlockChainRes) GetPrevHash() string
func (*BlockChainRes) ProtoMessage ¶
func (*BlockChainRes) ProtoMessage()
func (*BlockChainRes) ProtoReflect ¶
func (x *BlockChainRes) ProtoReflect() protoreflect.Message
func (*BlockChainRes) Reset ¶
func (x *BlockChainRes) Reset()
func (*BlockChainRes) String ¶
func (x *BlockChainRes) String() string
type Context ¶
type Context struct { Stream string `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` // contains filtered or unexported fields }
func (*Context) Descriptor
deprecated
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
type CreateBlockInput ¶
type CreateBlockInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` PrivKey []byte `protobuf:"bytes,2,opt,name=privKey,proto3" json:"privKey,omitempty"` // contains filtered or unexported fields }
func (*CreateBlockInput) Descriptor
deprecated
func (*CreateBlockInput) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlockInput.ProtoReflect.Descriptor instead.
func (*CreateBlockInput) GetContext ¶
func (x *CreateBlockInput) GetContext() *Context
func (*CreateBlockInput) GetPrivKey ¶
func (x *CreateBlockInput) GetPrivKey() []byte
func (*CreateBlockInput) ProtoMessage ¶
func (*CreateBlockInput) ProtoMessage()
func (*CreateBlockInput) ProtoReflect ¶
func (x *CreateBlockInput) ProtoReflect() protoreflect.Message
func (*CreateBlockInput) Reset ¶
func (x *CreateBlockInput) Reset()
func (*CreateBlockInput) String ¶
func (x *CreateBlockInput) String() string
type CreateBlockOutput ¶
type CreateBlockOutput struct { BlockID string `protobuf:"bytes,1,opt,name=blockID,proto3" json:"blockID,omitempty"` // contains filtered or unexported fields }
func (*CreateBlockOutput) Descriptor
deprecated
func (*CreateBlockOutput) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlockOutput.ProtoReflect.Descriptor instead.
func (*CreateBlockOutput) GetBlockID ¶
func (x *CreateBlockOutput) GetBlockID() string
func (*CreateBlockOutput) ProtoMessage ¶
func (*CreateBlockOutput) ProtoMessage()
func (*CreateBlockOutput) ProtoReflect ¶
func (x *CreateBlockOutput) ProtoReflect() protoreflect.Message
func (*CreateBlockOutput) Reset ¶
func (x *CreateBlockOutput) Reset()
func (*CreateBlockOutput) String ¶
func (x *CreateBlockOutput) String() string
type CreateWalletInput ¶
type CreateWalletInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Password []byte `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateWalletInput) Descriptor
deprecated
func (*CreateWalletInput) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletInput.ProtoReflect.Descriptor instead.
func (*CreateWalletInput) GetContext ¶
func (x *CreateWalletInput) GetContext() *Context
func (*CreateWalletInput) GetPassword ¶
func (x *CreateWalletInput) GetPassword() []byte
func (*CreateWalletInput) ProtoMessage ¶
func (*CreateWalletInput) ProtoMessage()
func (*CreateWalletInput) ProtoReflect ¶
func (x *CreateWalletInput) ProtoReflect() protoreflect.Message
func (*CreateWalletInput) Reset ¶
func (x *CreateWalletInput) Reset()
func (*CreateWalletInput) String ¶
func (x *CreateWalletInput) String() string
type CreateWalletOutput ¶
type CreateWalletOutput struct { Mnemonic []byte `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` PubKey []byte `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` PrivKey []byte `protobuf:"bytes,4,opt,name=privKey,proto3" json:"privKey,omitempty"` // contains filtered or unexported fields }
func (*CreateWalletOutput) Descriptor
deprecated
func (*CreateWalletOutput) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletOutput.ProtoReflect.Descriptor instead.
func (*CreateWalletOutput) GetAddress ¶
func (x *CreateWalletOutput) GetAddress() []byte
func (*CreateWalletOutput) GetMnemonic ¶
func (x *CreateWalletOutput) GetMnemonic() []byte
func (*CreateWalletOutput) GetPrivKey ¶
func (x *CreateWalletOutput) GetPrivKey() []byte
func (*CreateWalletOutput) GetPubKey ¶
func (x *CreateWalletOutput) GetPubKey() []byte
func (*CreateWalletOutput) ProtoMessage ¶
func (*CreateWalletOutput) ProtoMessage()
func (*CreateWalletOutput) ProtoReflect ¶
func (x *CreateWalletOutput) ProtoReflect() protoreflect.Message
func (*CreateWalletOutput) Reset ¶
func (x *CreateWalletOutput) Reset()
func (*CreateWalletOutput) String ¶
func (x *CreateWalletOutput) String() string
type GetBalanceInput ¶
type GetBalanceInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` PrivKey []byte `protobuf:"bytes,2,opt,name=privKey,proto3" json:"privKey,omitempty"` // contains filtered or unexported fields }
func (*GetBalanceInput) Descriptor
deprecated
func (*GetBalanceInput) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceInput.ProtoReflect.Descriptor instead.
func (*GetBalanceInput) GetContext ¶
func (x *GetBalanceInput) GetContext() *Context
func (*GetBalanceInput) GetPrivKey ¶
func (x *GetBalanceInput) GetPrivKey() []byte
func (*GetBalanceInput) ProtoMessage ¶
func (*GetBalanceInput) ProtoMessage()
func (*GetBalanceInput) ProtoReflect ¶
func (x *GetBalanceInput) ProtoReflect() protoreflect.Message
func (*GetBalanceInput) Reset ¶
func (x *GetBalanceInput) Reset()
func (*GetBalanceInput) String ¶
func (x *GetBalanceInput) String() string
type GetBalanceOutput ¶
type GetBalanceOutput struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` TotalReceived string `protobuf:"bytes,3,opt,name=totalReceived,proto3" json:"totalReceived,omitempty"` TotalSent string `protobuf:"bytes,4,opt,name=totalSent,proto3" json:"totalSent,omitempty"` // contains filtered or unexported fields }
func (*GetBalanceOutput) Descriptor
deprecated
func (*GetBalanceOutput) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceOutput.ProtoReflect.Descriptor instead.
func (*GetBalanceOutput) GetAddress ¶
func (x *GetBalanceOutput) GetAddress() string
func (*GetBalanceOutput) GetBalance ¶
func (x *GetBalanceOutput) GetBalance() string
func (*GetBalanceOutput) GetTotalReceived ¶
func (x *GetBalanceOutput) GetTotalReceived() string
func (*GetBalanceOutput) GetTotalSent ¶
func (x *GetBalanceOutput) GetTotalSent() string
func (*GetBalanceOutput) ProtoMessage ¶
func (*GetBalanceOutput) ProtoMessage()
func (*GetBalanceOutput) ProtoReflect ¶
func (x *GetBalanceOutput) ProtoReflect() protoreflect.Message
func (*GetBalanceOutput) Reset ¶
func (x *GetBalanceOutput) Reset()
func (*GetBalanceOutput) String ¶
func (x *GetBalanceOutput) String() string
type GetWalletInput ¶
type GetWalletInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` Mnemonic []byte `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Password []byte `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*GetWalletInput) Descriptor
deprecated
func (*GetWalletInput) Descriptor() ([]byte, []int)
Deprecated: Use GetWalletInput.ProtoReflect.Descriptor instead.
func (*GetWalletInput) GetContext ¶
func (x *GetWalletInput) GetContext() *Context
func (*GetWalletInput) GetMnemonic ¶
func (x *GetWalletInput) GetMnemonic() []byte
func (*GetWalletInput) GetPassword ¶
func (x *GetWalletInput) GetPassword() []byte
func (*GetWalletInput) ProtoMessage ¶
func (*GetWalletInput) ProtoMessage()
func (*GetWalletInput) ProtoReflect ¶
func (x *GetWalletInput) ProtoReflect() protoreflect.Message
func (*GetWalletInput) Reset ¶
func (x *GetWalletInput) Reset()
func (*GetWalletInput) String ¶
func (x *GetWalletInput) String() string
type GetWalletOutput ¶
type GetWalletOutput struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` PubKey []byte `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` PrivKey []byte `protobuf:"bytes,4,opt,name=privKey,proto3" json:"privKey,omitempty"` // contains filtered or unexported fields }
func (*GetWalletOutput) Descriptor
deprecated
func (*GetWalletOutput) Descriptor() ([]byte, []int)
Deprecated: Use GetWalletOutput.ProtoReflect.Descriptor instead.
func (*GetWalletOutput) GetAddress ¶
func (x *GetWalletOutput) GetAddress() []byte
func (*GetWalletOutput) GetPrivKey ¶
func (x *GetWalletOutput) GetPrivKey() []byte
func (*GetWalletOutput) GetPubKey ¶
func (x *GetWalletOutput) GetPubKey() []byte
func (*GetWalletOutput) GetTimestamp ¶
func (x *GetWalletOutput) GetTimestamp() string
func (*GetWalletOutput) ProtoMessage ¶
func (*GetWalletOutput) ProtoMessage()
func (*GetWalletOutput) ProtoReflect ¶
func (x *GetWalletOutput) ProtoReflect() protoreflect.Message
func (*GetWalletOutput) Reset ¶
func (x *GetWalletOutput) Reset()
func (*GetWalletOutput) String ¶
func (x *GetWalletOutput) String() string
type Ping ¶
type Ping struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` DelaySeconds float32 `protobuf:"fixed32,2,opt,name=delaySeconds,proto3" json:"delaySeconds,omitempty"` // contains filtered or unexported fields }
func (*Ping) Descriptor
deprecated
func (*Ping) GetDelaySeconds ¶
func (*Ping) GetMessage ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Pong) Descriptor
deprecated
func (*Pong) GetMessage ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type SendBlockInput ¶
type SendBlockInput struct { From string `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"` To string `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"` Amount string `protobuf:"bytes,3,opt,name=Amount,proto3" json:"Amount,omitempty"` // contains filtered or unexported fields }
func (*SendBlockInput) Descriptor
deprecated
func (*SendBlockInput) Descriptor() ([]byte, []int)
Deprecated: Use SendBlockInput.ProtoReflect.Descriptor instead.
func (*SendBlockInput) GetAmount ¶
func (x *SendBlockInput) GetAmount() string
func (*SendBlockInput) GetFrom ¶
func (x *SendBlockInput) GetFrom() string
func (*SendBlockInput) GetTo ¶
func (x *SendBlockInput) GetTo() string
func (*SendBlockInput) ProtoMessage ¶
func (*SendBlockInput) ProtoMessage()
func (*SendBlockInput) ProtoReflect ¶
func (x *SendBlockInput) ProtoReflect() protoreflect.Message
func (*SendBlockInput) Reset ¶
func (x *SendBlockInput) Reset()
func (*SendBlockInput) String ¶
func (x *SendBlockInput) String() string
type SendBlockOutput ¶
type SendBlockOutput struct {
// contains filtered or unexported fields
}
func (*SendBlockOutput) Descriptor
deprecated
func (*SendBlockOutput) Descriptor() ([]byte, []int)
Deprecated: Use SendBlockOutput.ProtoReflect.Descriptor instead.
func (*SendBlockOutput) ProtoMessage ¶
func (*SendBlockOutput) ProtoMessage()
func (*SendBlockOutput) ProtoReflect ¶
func (x *SendBlockOutput) ProtoReflect() protoreflect.Message
func (*SendBlockOutput) Reset ¶
func (x *SendBlockOutput) Reset()
func (*SendBlockOutput) String ¶
func (x *SendBlockOutput) String() string
type TraceInput ¶
type TraceInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*TraceInput) Descriptor
deprecated
func (*TraceInput) Descriptor() ([]byte, []int)
Deprecated: Use TraceInput.ProtoReflect.Descriptor instead.
func (*TraceInput) GetContext ¶
func (x *TraceInput) GetContext() *Context
func (*TraceInput) ProtoMessage ¶
func (*TraceInput) ProtoMessage()
func (*TraceInput) ProtoReflect ¶
func (x *TraceInput) ProtoReflect() protoreflect.Message
func (*TraceInput) Reset ¶
func (x *TraceInput) Reset()
func (*TraceInput) String ¶
func (x *TraceInput) String() string
type TraceOutput ¶
type TraceOutput struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*TraceOutput) Descriptor
deprecated
func (*TraceOutput) Descriptor() ([]byte, []int)
Deprecated: Use TraceOutput.ProtoReflect.Descriptor instead.
func (*TraceOutput) GetId ¶
func (x *TraceOutput) GetId() string
func (*TraceOutput) GetState ¶
func (x *TraceOutput) GetState() string
func (*TraceOutput) ProtoMessage ¶
func (*TraceOutput) ProtoMessage()
func (*TraceOutput) ProtoReflect ¶
func (x *TraceOutput) ProtoReflect() protoreflect.Message
func (*TraceOutput) Reset ¶
func (x *TraceOutput) Reset()
func (*TraceOutput) String ¶
func (x *TraceOutput) String() string
type Transactions ¶
type Transactions struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Inputs []*TxInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*TxOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Transactions) Descriptor
deprecated
func (*Transactions) Descriptor() ([]byte, []int)
Deprecated: Use Transactions.ProtoReflect.Descriptor instead.
func (*Transactions) GetId ¶
func (x *Transactions) GetId() []byte
func (*Transactions) GetInputs ¶
func (x *Transactions) GetInputs() []*TxInput
func (*Transactions) GetOutputs ¶
func (x *Transactions) GetOutputs() []*TxOutput
func (*Transactions) GetTimestamp ¶
func (x *Transactions) GetTimestamp() int64
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) ProtoReflect ¶
func (x *Transactions) ProtoReflect() protoreflect.Message
func (*Transactions) Reset ¶
func (x *Transactions) Reset()
func (*Transactions) String ¶
func (x *Transactions) String() string
type TxInput ¶
type TxInput struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Out int32 `protobuf:"varint,2,opt,name=out,proto3" json:"out,omitempty"` Sig string `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"` // contains filtered or unexported fields }
func (*TxInput) Descriptor
deprecated
func (*TxInput) ProtoMessage ¶
func (*TxInput) ProtoMessage()
func (*TxInput) ProtoReflect ¶
func (x *TxInput) ProtoReflect() protoreflect.Message
type TxOutput ¶
type TxOutput struct { Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` PubKey string `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"` // contains filtered or unexported fields }
func (*TxOutput) Descriptor
deprecated
func (*TxOutput) ProtoMessage ¶
func (*TxOutput) ProtoMessage()
func (*TxOutput) ProtoReflect ¶
func (x *TxOutput) ProtoReflect() protoreflect.Message
type UnimplementedApiServer ¶
type UnimplementedApiServer struct { }
UnimplementedApiServer can be embedded to have forward compatible implementations.
func (*UnimplementedApiServer) CreateBlock ¶
func (*UnimplementedApiServer) CreateBlock(context.Context, *CreateBlockInput) (*CreateBlockOutput, error)
func (*UnimplementedApiServer) CreateWallet ¶
func (*UnimplementedApiServer) CreateWallet(context.Context, *CreateWalletInput) (*CreateWalletOutput, error)
func (*UnimplementedApiServer) GetBalance ¶
func (*UnimplementedApiServer) GetBalance(context.Context, *GetBalanceInput) (*GetBalanceOutput, error)
func (*UnimplementedApiServer) GetBlockChain ¶
func (*UnimplementedApiServer) GetServersAddress ¶
func (*UnimplementedApiServer) GetTraces ¶
func (*UnimplementedApiServer) GetTraces(*TraceInput, Api_GetTracesServer) error
func (*UnimplementedApiServer) GetWallet ¶
func (*UnimplementedApiServer) GetWallet(context.Context, *GetWalletInput) (*GetWalletOutput, error)
func (*UnimplementedApiServer) GetWallets ¶
func (*UnimplementedApiServer) SendBlock ¶
func (*UnimplementedApiServer) SendBlock(context.Context, *SendBlockInput) (*SendBlockOutput, error)
func (*UnimplementedApiServer) ValidWallet ¶
func (*UnimplementedApiServer) ValidWallet(context.Context, *ValidWalletInput) (*ValidWalletOutput, error)
type ValidWalletInput ¶
type ValidWalletInput struct { // Mandatory field Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` PrivKey []byte `protobuf:"bytes,2,opt,name=privKey,proto3" json:"privKey,omitempty"` // contains filtered or unexported fields }
func (*ValidWalletInput) Descriptor
deprecated
func (*ValidWalletInput) Descriptor() ([]byte, []int)
Deprecated: Use ValidWalletInput.ProtoReflect.Descriptor instead.
func (*ValidWalletInput) GetContext ¶
func (x *ValidWalletInput) GetContext() *Context
func (*ValidWalletInput) GetPrivKey ¶
func (x *ValidWalletInput) GetPrivKey() []byte
func (*ValidWalletInput) ProtoMessage ¶
func (*ValidWalletInput) ProtoMessage()
func (*ValidWalletInput) ProtoReflect ¶
func (x *ValidWalletInput) ProtoReflect() protoreflect.Message
func (*ValidWalletInput) Reset ¶
func (x *ValidWalletInput) Reset()
func (*ValidWalletInput) String ¶
func (x *ValidWalletInput) String() string
type ValidWalletOutput ¶
type ValidWalletOutput struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
func (*ValidWalletOutput) Descriptor
deprecated
func (*ValidWalletOutput) Descriptor() ([]byte, []int)
Deprecated: Use ValidWalletOutput.ProtoReflect.Descriptor instead.
func (*ValidWalletOutput) GetValid ¶
func (x *ValidWalletOutput) GetValid() bool
func (*ValidWalletOutput) ProtoMessage ¶
func (*ValidWalletOutput) ProtoMessage()
func (*ValidWalletOutput) ProtoReflect ¶
func (x *ValidWalletOutput) ProtoReflect() protoreflect.Message
func (*ValidWalletOutput) Reset ¶
func (x *ValidWalletOutput) Reset()
func (*ValidWalletOutput) String ¶
func (x *ValidWalletOutput) String() string