Documentation ¶
Index ¶
- Variables
- func RegisterNodeServer(s *grpc.Server, srv NodeServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetIp() string
- func (m *Address) GetPort() uint32
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetFlags() []string
- func (m *Block) GetHash() []byte
- func (m *Block) GetHeight() uint32
- func (m *Block) GetMerkleRoot() []byte
- func (m *Block) GetPrevBlock() []byte
- func (m *Block) GetTarget() []byte
- func (m *Block) GetTimestamp() uint64
- func (m *Block) GetTxs() []*Tx
- func (m *Block) GetVersion() uint32
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockTemplate
- func (*BlockTemplate) Descriptor() ([]byte, []int)
- func (m *BlockTemplate) GetFlags() []string
- func (m *BlockTemplate) GetHeight() uint32
- func (m *BlockTemplate) GetPrevBlock() []byte
- func (m *BlockTemplate) GetTarget() []byte
- func (m *BlockTemplate) GetTimestamp() uint64
- func (m *BlockTemplate) GetVersion() uint32
- func (*BlockTemplate) ProtoMessage()
- func (m *BlockTemplate) Reset()
- func (m *BlockTemplate) String() string
- func (m *BlockTemplate) XXX_DiscardUnknown()
- func (m *BlockTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockTemplate) XXX_Merge(src proto.Message)
- func (m *BlockTemplate) XXX_Size() int
- func (m *BlockTemplate) XXX_Unmarshal(b []byte) error
- type ConnectPeerReply
- func (*ConnectPeerReply) Descriptor() ([]byte, []int)
- func (*ConnectPeerReply) ProtoMessage()
- func (m *ConnectPeerReply) Reset()
- func (m *ConnectPeerReply) String() string
- func (m *ConnectPeerReply) XXX_DiscardUnknown()
- func (m *ConnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConnectPeerReply) XXX_Merge(src proto.Message)
- func (m *ConnectPeerReply) XXX_Size() int
- func (m *ConnectPeerReply) XXX_Unmarshal(b []byte) error
- type ConnectPeerRequest
- func (*ConnectPeerRequest) Descriptor() ([]byte, []int)
- func (m *ConnectPeerRequest) GetPeer() *Peer
- func (*ConnectPeerRequest) ProtoMessage()
- func (m *ConnectPeerRequest) Reset()
- func (m *ConnectPeerRequest) String() string
- func (m *ConnectPeerRequest) XXX_DiscardUnknown()
- func (m *ConnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConnectPeerRequest) XXX_Merge(src proto.Message)
- func (m *ConnectPeerRequest) XXX_Size() int
- func (m *ConnectPeerRequest) XXX_Unmarshal(b []byte) error
- type DisconnectPeerReply
- func (*DisconnectPeerReply) Descriptor() ([]byte, []int)
- func (*DisconnectPeerReply) ProtoMessage()
- func (m *DisconnectPeerReply) Reset()
- func (m *DisconnectPeerReply) String() string
- func (m *DisconnectPeerReply) XXX_DiscardUnknown()
- func (m *DisconnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DisconnectPeerReply) XXX_Merge(src proto.Message)
- func (m *DisconnectPeerReply) XXX_Size() int
- func (m *DisconnectPeerReply) XXX_Unmarshal(b []byte) error
- type DisconnectPeerRequest
- func (*DisconnectPeerRequest) Descriptor() ([]byte, []int)
- func (m *DisconnectPeerRequest) GetPeer() *Peer
- func (*DisconnectPeerRequest) ProtoMessage()
- func (m *DisconnectPeerRequest) Reset()
- func (m *DisconnectPeerRequest) String() string
- func (m *DisconnectPeerRequest) XXX_DiscardUnknown()
- func (m *DisconnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DisconnectPeerRequest) XXX_Merge(src proto.Message)
- func (m *DisconnectPeerRequest) XXX_Size() int
- func (m *DisconnectPeerRequest) XXX_Unmarshal(b []byte) error
- type Error
- type GetBestBlocksReply
- func (*GetBestBlocksReply) Descriptor() ([]byte, []int)
- func (m *GetBestBlocksReply) GetHash() []byte
- func (*GetBestBlocksReply) ProtoMessage()
- func (m *GetBestBlocksReply) Reset()
- func (m *GetBestBlocksReply) String() string
- func (m *GetBestBlocksReply) XXX_DiscardUnknown()
- func (m *GetBestBlocksReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBestBlocksReply) XXX_Merge(src proto.Message)
- func (m *GetBestBlocksReply) XXX_Size() int
- func (m *GetBestBlocksReply) XXX_Unmarshal(b []byte) error
- type GetBestBlocksRequest
- func (*GetBestBlocksRequest) Descriptor() ([]byte, []int)
- func (*GetBestBlocksRequest) ProtoMessage()
- func (m *GetBestBlocksRequest) Reset()
- func (m *GetBestBlocksRequest) String() string
- func (m *GetBestBlocksRequest) XXX_DiscardUnknown()
- func (m *GetBestBlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBestBlocksRequest) XXX_Merge(src proto.Message)
- func (m *GetBestBlocksRequest) XXX_Size() int
- func (m *GetBestBlocksRequest) XXX_Unmarshal(b []byte) error
- type GetBlockByHashReply
- func (*GetBlockByHashReply) Descriptor() ([]byte, []int)
- func (m *GetBlockByHashReply) GetBlock() *Block
- func (*GetBlockByHashReply) ProtoMessage()
- func (m *GetBlockByHashReply) Reset()
- func (m *GetBlockByHashReply) String() string
- func (m *GetBlockByHashReply) XXX_DiscardUnknown()
- func (m *GetBlockByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockByHashReply) XXX_Merge(src proto.Message)
- func (m *GetBlockByHashReply) XXX_Size() int
- func (m *GetBlockByHashReply) XXX_Unmarshal(b []byte) error
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHashRequest) GetHash() []byte
- func (*GetBlockByHashRequest) ProtoMessage()
- func (m *GetBlockByHashRequest) Reset()
- func (m *GetBlockByHashRequest) String() string
- func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
- func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockByHashRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockByHashRequest) XXX_Size() int
- func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
- type GetBlockTemplateReply
- func (*GetBlockTemplateReply) Descriptor() ([]byte, []int)
- func (m *GetBlockTemplateReply) GetBlockTemplate() *BlockTemplate
- func (m *GetBlockTemplateReply) GetTxs() []*Tx
- func (*GetBlockTemplateReply) ProtoMessage()
- func (m *GetBlockTemplateReply) Reset()
- func (m *GetBlockTemplateReply) String() string
- func (m *GetBlockTemplateReply) XXX_DiscardUnknown()
- func (m *GetBlockTemplateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockTemplateReply) XXX_Merge(src proto.Message)
- func (m *GetBlockTemplateReply) XXX_Size() int
- func (m *GetBlockTemplateReply) XXX_Unmarshal(b []byte) error
- type GetBlockTemplateRequest
- func (*GetBlockTemplateRequest) Descriptor() ([]byte, []int)
- func (*GetBlockTemplateRequest) ProtoMessage()
- func (m *GetBlockTemplateRequest) Reset()
- func (m *GetBlockTemplateRequest) String() string
- func (m *GetBlockTemplateRequest) XXX_DiscardUnknown()
- func (m *GetBlockTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockTemplateRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockTemplateRequest) XXX_Size() int
- func (m *GetBlockTemplateRequest) XXX_Unmarshal(b []byte) error
- type GetInfoReply
- func (*GetInfoReply) Descriptor() ([]byte, []int)
- func (m *GetInfoReply) GetBestBlockHash() []byte
- func (m *GetInfoReply) GetGenesisBlockHash() []byte
- func (m *GetInfoReply) GetImplementation() string
- func (m *GetInfoReply) GetProtocolVersion() uint32
- func (*GetInfoReply) ProtoMessage()
- func (m *GetInfoReply) Reset()
- func (m *GetInfoReply) String() string
- func (m *GetInfoReply) XXX_DiscardUnknown()
- func (m *GetInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetInfoReply) XXX_Merge(src proto.Message)
- func (m *GetInfoReply) XXX_Size() int
- func (m *GetInfoReply) XXX_Unmarshal(b []byte) error
- type GetInfoRequest
- func (*GetInfoRequest) Descriptor() ([]byte, []int)
- func (*GetInfoRequest) ProtoMessage()
- func (m *GetInfoRequest) Reset()
- func (m *GetInfoRequest) String() string
- func (m *GetInfoRequest) XXX_DiscardUnknown()
- func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetInfoRequest) XXX_Size() int
- func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error
- type GetTxByHashReply
- func (*GetTxByHashReply) Descriptor() ([]byte, []int)
- func (m *GetTxByHashReply) GetTx() *Tx
- func (*GetTxByHashReply) ProtoMessage()
- func (m *GetTxByHashReply) Reset()
- func (m *GetTxByHashReply) String() string
- func (m *GetTxByHashReply) XXX_DiscardUnknown()
- func (m *GetTxByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetTxByHashReply) XXX_Merge(src proto.Message)
- func (m *GetTxByHashReply) XXX_Size() int
- func (m *GetTxByHashReply) XXX_Unmarshal(b []byte) error
- type GetTxByHashRequest
- func (*GetTxByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetTxByHashRequest) GetHash() []byte
- func (*GetTxByHashRequest) ProtoMessage()
- func (m *GetTxByHashRequest) Reset()
- func (m *GetTxByHashRequest) String() string
- func (m *GetTxByHashRequest) XXX_DiscardUnknown()
- func (m *GetTxByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetTxByHashRequest) XXX_Merge(src proto.Message)
- func (m *GetTxByHashRequest) XXX_Size() int
- func (m *GetTxByHashRequest) XXX_Unmarshal(b []byte) error
- type NodeClient
- type NodeServer
- type Node_GetBestBlocksClient
- type Node_GetBestBlocksServer
- type Node_GetBlockTemplateClient
- type Node_GetBlockTemplateServer
- type Outpoint
- func (*Outpoint) Descriptor() ([]byte, []int)
- func (m *Outpoint) GetHash() []byte
- func (m *Outpoint) GetIndex() uint32
- func (*Outpoint) ProtoMessage()
- func (m *Outpoint) Reset()
- func (m *Outpoint) String() string
- func (m *Outpoint) XXX_DiscardUnknown()
- func (m *Outpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Outpoint) XXX_Merge(src proto.Message)
- func (m *Outpoint) XXX_Size() int
- func (m *Outpoint) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetAddress() *Address
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type PublishRawBlockReply
- func (*PublishRawBlockReply) Descriptor() ([]byte, []int)
- func (*PublishRawBlockReply) ProtoMessage()
- func (m *PublishRawBlockReply) Reset()
- func (m *PublishRawBlockReply) String() string
- func (m *PublishRawBlockReply) XXX_DiscardUnknown()
- func (m *PublishRawBlockReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublishRawBlockReply) XXX_Merge(src proto.Message)
- func (m *PublishRawBlockReply) XXX_Size() int
- func (m *PublishRawBlockReply) XXX_Unmarshal(b []byte) error
- type PublishRawBlockRequest
- func (*PublishRawBlockRequest) Descriptor() ([]byte, []int)
- func (m *PublishRawBlockRequest) GetRawBlock() []byte
- func (*PublishRawBlockRequest) ProtoMessage()
- func (m *PublishRawBlockRequest) Reset()
- func (m *PublishRawBlockRequest) String() string
- func (m *PublishRawBlockRequest) XXX_DiscardUnknown()
- func (m *PublishRawBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublishRawBlockRequest) XXX_Merge(src proto.Message)
- func (m *PublishRawBlockRequest) XXX_Size() int
- func (m *PublishRawBlockRequest) XXX_Unmarshal(b []byte) error
- type PublishRawTxReply
- func (*PublishRawTxReply) Descriptor() ([]byte, []int)
- func (*PublishRawTxReply) ProtoMessage()
- func (m *PublishRawTxReply) Reset()
- func (m *PublishRawTxReply) String() string
- func (m *PublishRawTxReply) XXX_DiscardUnknown()
- func (m *PublishRawTxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublishRawTxReply) XXX_Merge(src proto.Message)
- func (m *PublishRawTxReply) XXX_Size() int
- func (m *PublishRawTxReply) XXX_Unmarshal(b []byte) error
- type PublishRawTxRequest
- func (*PublishRawTxRequest) Descriptor() ([]byte, []int)
- func (m *PublishRawTxRequest) GetRawTx() []byte
- func (*PublishRawTxRequest) ProtoMessage()
- func (m *PublishRawTxRequest) Reset()
- func (m *PublishRawTxRequest) String() string
- func (m *PublishRawTxRequest) XXX_DiscardUnknown()
- func (m *PublishRawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PublishRawTxRequest) XXX_Merge(src proto.Message)
- func (m *PublishRawTxRequest) XXX_Size() int
- func (m *PublishRawTxRequest) XXX_Unmarshal(b []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetError() Error
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetFlags() []string
- func (m *Tx) GetHash() []byte
- func (m *Tx) GetInputs() []*TxInput
- func (m *Tx) GetOutputs() []*TxOutput
- func (m *Tx) GetVersion() uint32
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) String() string
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Tx) XXX_Merge(src proto.Message)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type TxInput
- func (*TxInput) Descriptor() ([]byte, []int)
- func (m *TxInput) GetPreviousOutput() *Outpoint
- func (m *TxInput) GetScript() []byte
- func (*TxInput) ProtoMessage()
- func (m *TxInput) Reset()
- func (m *TxInput) String() string
- func (m *TxInput) XXX_DiscardUnknown()
- func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxInput) XXX_Merge(src proto.Message)
- func (m *TxInput) XXX_Size() int
- func (m *TxInput) XXX_Unmarshal(b []byte) error
- type TxOutput
- func (*TxOutput) Descriptor() ([]byte, []int)
- func (m *TxOutput) GetScript() []byte
- func (m *TxOutput) GetValue() uint64
- func (*TxOutput) ProtoMessage()
- func (m *TxOutput) Reset()
- func (m *TxOutput) String() string
- func (m *TxOutput) XXX_DiscardUnknown()
- func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxOutput) XXX_Merge(src proto.Message)
- func (m *TxOutput) XXX_Size() int
- func (m *TxOutput) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Error_name = map[int32]string{
0: "INVALID_DATA",
}
View Source
var Error_value = map[string]int32{
"INVALID_DATA": 0,
}
Functions ¶
func RegisterNodeServer ¶
func RegisterNodeServer(s *grpc.Server, srv NodeServer)
Types ¶
type Address ¶
type Address struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type Block ¶
type Block struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` Flags []string `protobuf:"bytes,3,rep,name=flags,proto3" json:"flags,omitempty"` PrevBlock []byte `protobuf:"bytes,4,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"` MerkleRoot []byte `protobuf:"bytes,5,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Height uint32 `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"` Target []byte `protobuf:"bytes,8,opt,name=target,proto3" json:"target,omitempty"` Txs []*Tx `protobuf:"bytes,9,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) GetMerkleRoot ¶
func (*Block) GetPrevBlock ¶
func (*Block) GetTimestamp ¶
func (*Block) GetVersion ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockTemplate ¶
type BlockTemplate struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Flags []string `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"` PrevBlock []byte `protobuf:"bytes,3,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Target []byte `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockTemplate) Descriptor ¶
func (*BlockTemplate) Descriptor() ([]byte, []int)
func (*BlockTemplate) GetFlags ¶
func (m *BlockTemplate) GetFlags() []string
func (*BlockTemplate) GetHeight ¶
func (m *BlockTemplate) GetHeight() uint32
func (*BlockTemplate) GetPrevBlock ¶
func (m *BlockTemplate) GetPrevBlock() []byte
func (*BlockTemplate) GetTarget ¶
func (m *BlockTemplate) GetTarget() []byte
func (*BlockTemplate) GetTimestamp ¶
func (m *BlockTemplate) GetTimestamp() uint64
func (*BlockTemplate) GetVersion ¶
func (m *BlockTemplate) GetVersion() uint32
func (*BlockTemplate) ProtoMessage ¶
func (*BlockTemplate) ProtoMessage()
func (*BlockTemplate) Reset ¶
func (m *BlockTemplate) Reset()
func (*BlockTemplate) String ¶
func (m *BlockTemplate) String() string
func (*BlockTemplate) XXX_DiscardUnknown ¶
func (m *BlockTemplate) XXX_DiscardUnknown()
func (*BlockTemplate) XXX_Marshal ¶
func (m *BlockTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockTemplate) XXX_Merge ¶
func (dst *BlockTemplate) XXX_Merge(src proto.Message)
func (*BlockTemplate) XXX_Size ¶
func (m *BlockTemplate) XXX_Size() int
func (*BlockTemplate) XXX_Unmarshal ¶
func (m *BlockTemplate) XXX_Unmarshal(b []byte) error
type ConnectPeerReply ¶
type ConnectPeerReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnectPeerReply) Descriptor ¶
func (*ConnectPeerReply) Descriptor() ([]byte, []int)
func (*ConnectPeerReply) ProtoMessage ¶
func (*ConnectPeerReply) ProtoMessage()
func (*ConnectPeerReply) Reset ¶
func (m *ConnectPeerReply) Reset()
func (*ConnectPeerReply) String ¶
func (m *ConnectPeerReply) String() string
func (*ConnectPeerReply) XXX_DiscardUnknown ¶
func (m *ConnectPeerReply) XXX_DiscardUnknown()
func (*ConnectPeerReply) XXX_Marshal ¶
func (m *ConnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectPeerReply) XXX_Merge ¶
func (dst *ConnectPeerReply) XXX_Merge(src proto.Message)
func (*ConnectPeerReply) XXX_Size ¶
func (m *ConnectPeerReply) XXX_Size() int
func (*ConnectPeerReply) XXX_Unmarshal ¶
func (m *ConnectPeerReply) XXX_Unmarshal(b []byte) error
type ConnectPeerRequest ¶
type ConnectPeerRequest struct { Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnectPeerRequest) Descriptor ¶
func (*ConnectPeerRequest) Descriptor() ([]byte, []int)
func (*ConnectPeerRequest) GetPeer ¶
func (m *ConnectPeerRequest) GetPeer() *Peer
func (*ConnectPeerRequest) ProtoMessage ¶
func (*ConnectPeerRequest) ProtoMessage()
func (*ConnectPeerRequest) Reset ¶
func (m *ConnectPeerRequest) Reset()
func (*ConnectPeerRequest) String ¶
func (m *ConnectPeerRequest) String() string
func (*ConnectPeerRequest) XXX_DiscardUnknown ¶
func (m *ConnectPeerRequest) XXX_DiscardUnknown()
func (*ConnectPeerRequest) XXX_Marshal ¶
func (m *ConnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectPeerRequest) XXX_Merge ¶
func (dst *ConnectPeerRequest) XXX_Merge(src proto.Message)
func (*ConnectPeerRequest) XXX_Size ¶
func (m *ConnectPeerRequest) XXX_Size() int
func (*ConnectPeerRequest) XXX_Unmarshal ¶
func (m *ConnectPeerRequest) XXX_Unmarshal(b []byte) error
type DisconnectPeerReply ¶
type DisconnectPeerReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DisconnectPeerReply) Descriptor ¶
func (*DisconnectPeerReply) Descriptor() ([]byte, []int)
func (*DisconnectPeerReply) ProtoMessage ¶
func (*DisconnectPeerReply) ProtoMessage()
func (*DisconnectPeerReply) Reset ¶
func (m *DisconnectPeerReply) Reset()
func (*DisconnectPeerReply) String ¶
func (m *DisconnectPeerReply) String() string
func (*DisconnectPeerReply) XXX_DiscardUnknown ¶
func (m *DisconnectPeerReply) XXX_DiscardUnknown()
func (*DisconnectPeerReply) XXX_Marshal ¶
func (m *DisconnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisconnectPeerReply) XXX_Merge ¶
func (dst *DisconnectPeerReply) XXX_Merge(src proto.Message)
func (*DisconnectPeerReply) XXX_Size ¶
func (m *DisconnectPeerReply) XXX_Size() int
func (*DisconnectPeerReply) XXX_Unmarshal ¶
func (m *DisconnectPeerReply) XXX_Unmarshal(b []byte) error
type DisconnectPeerRequest ¶
type DisconnectPeerRequest struct { Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DisconnectPeerRequest) Descriptor ¶
func (*DisconnectPeerRequest) Descriptor() ([]byte, []int)
func (*DisconnectPeerRequest) GetPeer ¶
func (m *DisconnectPeerRequest) GetPeer() *Peer
func (*DisconnectPeerRequest) ProtoMessage ¶
func (*DisconnectPeerRequest) ProtoMessage()
func (*DisconnectPeerRequest) Reset ¶
func (m *DisconnectPeerRequest) Reset()
func (*DisconnectPeerRequest) String ¶
func (m *DisconnectPeerRequest) String() string
func (*DisconnectPeerRequest) XXX_DiscardUnknown ¶
func (m *DisconnectPeerRequest) XXX_DiscardUnknown()
func (*DisconnectPeerRequest) XXX_Marshal ¶
func (m *DisconnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisconnectPeerRequest) XXX_Merge ¶
func (dst *DisconnectPeerRequest) XXX_Merge(src proto.Message)
func (*DisconnectPeerRequest) XXX_Size ¶
func (m *DisconnectPeerRequest) XXX_Size() int
func (*DisconnectPeerRequest) XXX_Unmarshal ¶
func (m *DisconnectPeerRequest) XXX_Unmarshal(b []byte) error
type GetBestBlocksReply ¶
type GetBestBlocksReply struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBestBlocksReply) Descriptor ¶
func (*GetBestBlocksReply) Descriptor() ([]byte, []int)
func (*GetBestBlocksReply) GetHash ¶
func (m *GetBestBlocksReply) GetHash() []byte
func (*GetBestBlocksReply) ProtoMessage ¶
func (*GetBestBlocksReply) ProtoMessage()
func (*GetBestBlocksReply) Reset ¶
func (m *GetBestBlocksReply) Reset()
func (*GetBestBlocksReply) String ¶
func (m *GetBestBlocksReply) String() string
func (*GetBestBlocksReply) XXX_DiscardUnknown ¶
func (m *GetBestBlocksReply) XXX_DiscardUnknown()
func (*GetBestBlocksReply) XXX_Marshal ¶
func (m *GetBestBlocksReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBestBlocksReply) XXX_Merge ¶
func (dst *GetBestBlocksReply) XXX_Merge(src proto.Message)
func (*GetBestBlocksReply) XXX_Size ¶
func (m *GetBestBlocksReply) XXX_Size() int
func (*GetBestBlocksReply) XXX_Unmarshal ¶
func (m *GetBestBlocksReply) XXX_Unmarshal(b []byte) error
type GetBestBlocksRequest ¶
type GetBestBlocksRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBestBlocksRequest) Descriptor ¶
func (*GetBestBlocksRequest) Descriptor() ([]byte, []int)
func (*GetBestBlocksRequest) ProtoMessage ¶
func (*GetBestBlocksRequest) ProtoMessage()
func (*GetBestBlocksRequest) Reset ¶
func (m *GetBestBlocksRequest) Reset()
func (*GetBestBlocksRequest) String ¶
func (m *GetBestBlocksRequest) String() string
func (*GetBestBlocksRequest) XXX_DiscardUnknown ¶
func (m *GetBestBlocksRequest) XXX_DiscardUnknown()
func (*GetBestBlocksRequest) XXX_Marshal ¶
func (m *GetBestBlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBestBlocksRequest) XXX_Merge ¶
func (dst *GetBestBlocksRequest) XXX_Merge(src proto.Message)
func (*GetBestBlocksRequest) XXX_Size ¶
func (m *GetBestBlocksRequest) XXX_Size() int
func (*GetBestBlocksRequest) XXX_Unmarshal ¶
func (m *GetBestBlocksRequest) XXX_Unmarshal(b []byte) error
type GetBlockByHashReply ¶
type GetBlockByHashReply struct { Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockByHashReply) Descriptor ¶
func (*GetBlockByHashReply) Descriptor() ([]byte, []int)
func (*GetBlockByHashReply) GetBlock ¶
func (m *GetBlockByHashReply) GetBlock() *Block
func (*GetBlockByHashReply) ProtoMessage ¶
func (*GetBlockByHashReply) ProtoMessage()
func (*GetBlockByHashReply) Reset ¶
func (m *GetBlockByHashReply) Reset()
func (*GetBlockByHashReply) String ¶
func (m *GetBlockByHashReply) String() string
func (*GetBlockByHashReply) XXX_DiscardUnknown ¶
func (m *GetBlockByHashReply) XXX_DiscardUnknown()
func (*GetBlockByHashReply) XXX_Marshal ¶
func (m *GetBlockByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHashReply) XXX_Merge ¶
func (dst *GetBlockByHashReply) XXX_Merge(src proto.Message)
func (*GetBlockByHashReply) XXX_Size ¶
func (m *GetBlockByHashReply) XXX_Size() int
func (*GetBlockByHashReply) XXX_Unmarshal ¶
func (m *GetBlockByHashReply) XXX_Unmarshal(b []byte) error
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockByHashRequest) Descriptor ¶
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHashRequest) GetHash ¶
func (m *GetBlockByHashRequest) GetHash() []byte
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) Reset ¶
func (m *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶
func (m *GetBlockByHashRequest) String() string
func (*GetBlockByHashRequest) XXX_DiscardUnknown ¶
func (m *GetBlockByHashRequest) XXX_DiscardUnknown()
func (*GetBlockByHashRequest) XXX_Marshal ¶
func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockByHashRequest) XXX_Merge ¶
func (dst *GetBlockByHashRequest) XXX_Merge(src proto.Message)
func (*GetBlockByHashRequest) XXX_Size ¶
func (m *GetBlockByHashRequest) XXX_Size() int
func (*GetBlockByHashRequest) XXX_Unmarshal ¶
func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error
type GetBlockTemplateReply ¶
type GetBlockTemplateReply struct { BlockTemplate *BlockTemplate `protobuf:"bytes,1,opt,name=block_template,json=blockTemplate,proto3" json:"block_template,omitempty"` Txs []*Tx `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockTemplateReply) Descriptor ¶
func (*GetBlockTemplateReply) Descriptor() ([]byte, []int)
func (*GetBlockTemplateReply) GetBlockTemplate ¶
func (m *GetBlockTemplateReply) GetBlockTemplate() *BlockTemplate
func (*GetBlockTemplateReply) GetTxs ¶
func (m *GetBlockTemplateReply) GetTxs() []*Tx
func (*GetBlockTemplateReply) ProtoMessage ¶
func (*GetBlockTemplateReply) ProtoMessage()
func (*GetBlockTemplateReply) Reset ¶
func (m *GetBlockTemplateReply) Reset()
func (*GetBlockTemplateReply) String ¶
func (m *GetBlockTemplateReply) String() string
func (*GetBlockTemplateReply) XXX_DiscardUnknown ¶
func (m *GetBlockTemplateReply) XXX_DiscardUnknown()
func (*GetBlockTemplateReply) XXX_Marshal ¶
func (m *GetBlockTemplateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockTemplateReply) XXX_Merge ¶
func (dst *GetBlockTemplateReply) XXX_Merge(src proto.Message)
func (*GetBlockTemplateReply) XXX_Size ¶
func (m *GetBlockTemplateReply) XXX_Size() int
func (*GetBlockTemplateReply) XXX_Unmarshal ¶
func (m *GetBlockTemplateReply) XXX_Unmarshal(b []byte) error
type GetBlockTemplateRequest ¶
type GetBlockTemplateRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBlockTemplateRequest) Descriptor ¶
func (*GetBlockTemplateRequest) Descriptor() ([]byte, []int)
func (*GetBlockTemplateRequest) ProtoMessage ¶
func (*GetBlockTemplateRequest) ProtoMessage()
func (*GetBlockTemplateRequest) Reset ¶
func (m *GetBlockTemplateRequest) Reset()
func (*GetBlockTemplateRequest) String ¶
func (m *GetBlockTemplateRequest) String() string
func (*GetBlockTemplateRequest) XXX_DiscardUnknown ¶
func (m *GetBlockTemplateRequest) XXX_DiscardUnknown()
func (*GetBlockTemplateRequest) XXX_Marshal ¶
func (m *GetBlockTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockTemplateRequest) XXX_Merge ¶
func (dst *GetBlockTemplateRequest) XXX_Merge(src proto.Message)
func (*GetBlockTemplateRequest) XXX_Size ¶
func (m *GetBlockTemplateRequest) XXX_Size() int
func (*GetBlockTemplateRequest) XXX_Unmarshal ¶
func (m *GetBlockTemplateRequest) XXX_Unmarshal(b []byte) error
type GetInfoReply ¶
type GetInfoReply struct { Implementation string `protobuf:"bytes,1,opt,name=implementation,proto3" json:"implementation,omitempty"` ProtocolVersion uint32 `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` BestBlockHash []byte `protobuf:"bytes,3,opt,name=best_block_hash,json=bestBlockHash,proto3" json:"best_block_hash,omitempty"` GenesisBlockHash []byte `protobuf:"bytes,4,opt,name=genesis_block_hash,json=genesisBlockHash,proto3" json:"genesis_block_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetInfoReply) Descriptor ¶
func (*GetInfoReply) Descriptor() ([]byte, []int)
func (*GetInfoReply) GetBestBlockHash ¶
func (m *GetInfoReply) GetBestBlockHash() []byte
func (*GetInfoReply) GetGenesisBlockHash ¶
func (m *GetInfoReply) GetGenesisBlockHash() []byte
func (*GetInfoReply) GetImplementation ¶
func (m *GetInfoReply) GetImplementation() string
func (*GetInfoReply) GetProtocolVersion ¶
func (m *GetInfoReply) GetProtocolVersion() uint32
func (*GetInfoReply) ProtoMessage ¶
func (*GetInfoReply) ProtoMessage()
func (*GetInfoReply) Reset ¶
func (m *GetInfoReply) Reset()
func (*GetInfoReply) String ¶
func (m *GetInfoReply) String() string
func (*GetInfoReply) XXX_DiscardUnknown ¶
func (m *GetInfoReply) XXX_DiscardUnknown()
func (*GetInfoReply) XXX_Marshal ¶
func (m *GetInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoReply) XXX_Merge ¶
func (dst *GetInfoReply) XXX_Merge(src proto.Message)
func (*GetInfoReply) XXX_Size ¶
func (m *GetInfoReply) XXX_Size() int
func (*GetInfoReply) XXX_Unmarshal ¶
func (m *GetInfoReply) XXX_Unmarshal(b []byte) error
type GetInfoRequest ¶
type GetInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetInfoRequest) Descriptor ¶
func (*GetInfoRequest) Descriptor() ([]byte, []int)
func (*GetInfoRequest) ProtoMessage ¶
func (*GetInfoRequest) ProtoMessage()
func (*GetInfoRequest) Reset ¶
func (m *GetInfoRequest) Reset()
func (*GetInfoRequest) String ¶
func (m *GetInfoRequest) String() string
func (*GetInfoRequest) XXX_DiscardUnknown ¶
func (m *GetInfoRequest) XXX_DiscardUnknown()
func (*GetInfoRequest) XXX_Marshal ¶
func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetInfoRequest) XXX_Merge ¶
func (dst *GetInfoRequest) XXX_Merge(src proto.Message)
func (*GetInfoRequest) XXX_Size ¶
func (m *GetInfoRequest) XXX_Size() int
func (*GetInfoRequest) XXX_Unmarshal ¶
func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error
type GetTxByHashReply ¶
type GetTxByHashReply struct { Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTxByHashReply) Descriptor ¶
func (*GetTxByHashReply) Descriptor() ([]byte, []int)
func (*GetTxByHashReply) GetTx ¶
func (m *GetTxByHashReply) GetTx() *Tx
func (*GetTxByHashReply) ProtoMessage ¶
func (*GetTxByHashReply) ProtoMessage()
func (*GetTxByHashReply) Reset ¶
func (m *GetTxByHashReply) Reset()
func (*GetTxByHashReply) String ¶
func (m *GetTxByHashReply) String() string
func (*GetTxByHashReply) XXX_DiscardUnknown ¶
func (m *GetTxByHashReply) XXX_DiscardUnknown()
func (*GetTxByHashReply) XXX_Marshal ¶
func (m *GetTxByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTxByHashReply) XXX_Merge ¶
func (dst *GetTxByHashReply) XXX_Merge(src proto.Message)
func (*GetTxByHashReply) XXX_Size ¶
func (m *GetTxByHashReply) XXX_Size() int
func (*GetTxByHashReply) XXX_Unmarshal ¶
func (m *GetTxByHashReply) XXX_Unmarshal(b []byte) error
type GetTxByHashRequest ¶
type GetTxByHashRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTxByHashRequest) Descriptor ¶
func (*GetTxByHashRequest) Descriptor() ([]byte, []int)
func (*GetTxByHashRequest) GetHash ¶
func (m *GetTxByHashRequest) GetHash() []byte
func (*GetTxByHashRequest) ProtoMessage ¶
func (*GetTxByHashRequest) ProtoMessage()
func (*GetTxByHashRequest) Reset ¶
func (m *GetTxByHashRequest) Reset()
func (*GetTxByHashRequest) String ¶
func (m *GetTxByHashRequest) String() string
func (*GetTxByHashRequest) XXX_DiscardUnknown ¶
func (m *GetTxByHashRequest) XXX_DiscardUnknown()
func (*GetTxByHashRequest) XXX_Marshal ¶
func (m *GetTxByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTxByHashRequest) XXX_Merge ¶
func (dst *GetTxByHashRequest) XXX_Merge(src proto.Message)
func (*GetTxByHashRequest) XXX_Size ¶
func (m *GetTxByHashRequest) XXX_Size() int
func (*GetTxByHashRequest) XXX_Unmarshal ¶
func (m *GetTxByHashRequest) XXX_Unmarshal(b []byte) error
type NodeClient ¶
type NodeClient interface { GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoReply, error) PublishRawTx(ctx context.Context, in *PublishRawTxRequest, opts ...grpc.CallOption) (*PublishRawTxReply, error) PublishRawBlock(ctx context.Context, in *PublishRawBlockRequest, opts ...grpc.CallOption) (*PublishRawBlockReply, error) GetBlockTemplate(ctx context.Context, in *GetBlockTemplateRequest, opts ...grpc.CallOption) (Node_GetBlockTemplateClient, error) GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*GetBlockByHashReply, error) GetTxByHash(ctx context.Context, in *GetTxByHashRequest, opts ...grpc.CallOption) (*GetTxByHashReply, error) ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerReply, error) DisconnectPeer(ctx context.Context, in *DisconnectPeerRequest, opts ...grpc.CallOption) (*DisconnectPeerReply, error) GetBestBlocks(ctx context.Context, in *GetBestBlocksRequest, opts ...grpc.CallOption) (Node_GetBestBlocksClient, error) }
NodeClient is the client API for Node service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNodeClient ¶
func NewNodeClient(cc *grpc.ClientConn) NodeClient
type NodeServer ¶
type NodeServer interface { GetInfo(context.Context, *GetInfoRequest) (*GetInfoReply, error) PublishRawTx(context.Context, *PublishRawTxRequest) (*PublishRawTxReply, error) PublishRawBlock(context.Context, *PublishRawBlockRequest) (*PublishRawBlockReply, error) GetBlockTemplate(*GetBlockTemplateRequest, Node_GetBlockTemplateServer) error GetBlockByHash(context.Context, *GetBlockByHashRequest) (*GetBlockByHashReply, error) GetTxByHash(context.Context, *GetTxByHashRequest) (*GetTxByHashReply, error) ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerReply, error) DisconnectPeer(context.Context, *DisconnectPeerRequest) (*DisconnectPeerReply, error) GetBestBlocks(*GetBestBlocksRequest, Node_GetBestBlocksServer) error }
NodeServer is the server API for Node service.
type Node_GetBestBlocksClient ¶
type Node_GetBestBlocksClient interface { Recv() (*GetBestBlocksReply, error) grpc.ClientStream }
type Node_GetBestBlocksServer ¶
type Node_GetBestBlocksServer interface { Send(*GetBestBlocksReply) error grpc.ServerStream }
type Node_GetBlockTemplateClient ¶
type Node_GetBlockTemplateClient interface { Recv() (*GetBlockTemplateReply, error) grpc.ClientStream }
type Node_GetBlockTemplateServer ¶
type Node_GetBlockTemplateServer interface { Send(*GetBlockTemplateReply) error grpc.ServerStream }
type Outpoint ¶
type Outpoint struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Outpoint) Descriptor ¶
func (*Outpoint) ProtoMessage ¶
func (*Outpoint) ProtoMessage()
func (*Outpoint) XXX_DiscardUnknown ¶
func (m *Outpoint) XXX_DiscardUnknown()
func (*Outpoint) XXX_Marshal ¶
func (*Outpoint) XXX_Unmarshal ¶
type Peer ¶
type Peer struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) GetAddress ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type PublishRawBlockReply ¶
type PublishRawBlockReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublishRawBlockReply) Descriptor ¶
func (*PublishRawBlockReply) Descriptor() ([]byte, []int)
func (*PublishRawBlockReply) ProtoMessage ¶
func (*PublishRawBlockReply) ProtoMessage()
func (*PublishRawBlockReply) Reset ¶
func (m *PublishRawBlockReply) Reset()
func (*PublishRawBlockReply) String ¶
func (m *PublishRawBlockReply) String() string
func (*PublishRawBlockReply) XXX_DiscardUnknown ¶
func (m *PublishRawBlockReply) XXX_DiscardUnknown()
func (*PublishRawBlockReply) XXX_Marshal ¶
func (m *PublishRawBlockReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRawBlockReply) XXX_Merge ¶
func (dst *PublishRawBlockReply) XXX_Merge(src proto.Message)
func (*PublishRawBlockReply) XXX_Size ¶
func (m *PublishRawBlockReply) XXX_Size() int
func (*PublishRawBlockReply) XXX_Unmarshal ¶
func (m *PublishRawBlockReply) XXX_Unmarshal(b []byte) error
type PublishRawBlockRequest ¶
type PublishRawBlockRequest struct { RawBlock []byte `protobuf:"bytes,1,opt,name=raw_block,json=rawBlock,proto3" json:"raw_block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublishRawBlockRequest) Descriptor ¶
func (*PublishRawBlockRequest) Descriptor() ([]byte, []int)
func (*PublishRawBlockRequest) GetRawBlock ¶
func (m *PublishRawBlockRequest) GetRawBlock() []byte
func (*PublishRawBlockRequest) ProtoMessage ¶
func (*PublishRawBlockRequest) ProtoMessage()
func (*PublishRawBlockRequest) Reset ¶
func (m *PublishRawBlockRequest) Reset()
func (*PublishRawBlockRequest) String ¶
func (m *PublishRawBlockRequest) String() string
func (*PublishRawBlockRequest) XXX_DiscardUnknown ¶
func (m *PublishRawBlockRequest) XXX_DiscardUnknown()
func (*PublishRawBlockRequest) XXX_Marshal ¶
func (m *PublishRawBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRawBlockRequest) XXX_Merge ¶
func (dst *PublishRawBlockRequest) XXX_Merge(src proto.Message)
func (*PublishRawBlockRequest) XXX_Size ¶
func (m *PublishRawBlockRequest) XXX_Size() int
func (*PublishRawBlockRequest) XXX_Unmarshal ¶
func (m *PublishRawBlockRequest) XXX_Unmarshal(b []byte) error
type PublishRawTxReply ¶
type PublishRawTxReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublishRawTxReply) Descriptor ¶
func (*PublishRawTxReply) Descriptor() ([]byte, []int)
func (*PublishRawTxReply) ProtoMessage ¶
func (*PublishRawTxReply) ProtoMessage()
func (*PublishRawTxReply) Reset ¶
func (m *PublishRawTxReply) Reset()
func (*PublishRawTxReply) String ¶
func (m *PublishRawTxReply) String() string
func (*PublishRawTxReply) XXX_DiscardUnknown ¶
func (m *PublishRawTxReply) XXX_DiscardUnknown()
func (*PublishRawTxReply) XXX_Marshal ¶
func (m *PublishRawTxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRawTxReply) XXX_Merge ¶
func (dst *PublishRawTxReply) XXX_Merge(src proto.Message)
func (*PublishRawTxReply) XXX_Size ¶
func (m *PublishRawTxReply) XXX_Size() int
func (*PublishRawTxReply) XXX_Unmarshal ¶
func (m *PublishRawTxReply) XXX_Unmarshal(b []byte) error
type PublishRawTxRequest ¶
type PublishRawTxRequest struct { RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublishRawTxRequest) Descriptor ¶
func (*PublishRawTxRequest) Descriptor() ([]byte, []int)
func (*PublishRawTxRequest) GetRawTx ¶
func (m *PublishRawTxRequest) GetRawTx() []byte
func (*PublishRawTxRequest) ProtoMessage ¶
func (*PublishRawTxRequest) ProtoMessage()
func (*PublishRawTxRequest) Reset ¶
func (m *PublishRawTxRequest) Reset()
func (*PublishRawTxRequest) String ¶
func (m *PublishRawTxRequest) String() string
func (*PublishRawTxRequest) XXX_DiscardUnknown ¶
func (m *PublishRawTxRequest) XXX_DiscardUnknown()
func (*PublishRawTxRequest) XXX_Marshal ¶
func (m *PublishRawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRawTxRequest) XXX_Merge ¶
func (dst *PublishRawTxRequest) XXX_Merge(src proto.Message)
func (*PublishRawTxRequest) XXX_Size ¶
func (m *PublishRawTxRequest) XXX_Size() int
func (*PublishRawTxRequest) XXX_Unmarshal ¶
func (m *PublishRawTxRequest) XXX_Unmarshal(b []byte) error
type Reply ¶
type Reply struct { Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=ensicoin_rpc.Error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Reply) Descriptor ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type Tx ¶
type Tx struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Flags []string `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"` Inputs []*TxInput `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*TxOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` Hash []byte `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tx) Descriptor ¶
func (*Tx) GetOutputs ¶
func (*Tx) GetVersion ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Unmarshal ¶
type TxInput ¶
type TxInput struct { PreviousOutput *Outpoint `protobuf:"bytes,1,opt,name=previous_output,json=previousOutput,proto3" json:"previous_output,omitempty"` Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxInput) Descriptor ¶
func (*TxInput) GetPreviousOutput ¶
func (*TxInput) ProtoMessage ¶
func (*TxInput) ProtoMessage()
func (*TxInput) XXX_DiscardUnknown ¶
func (m *TxInput) XXX_DiscardUnknown()
func (*TxInput) XXX_Marshal ¶
func (*TxInput) XXX_Unmarshal ¶
type TxOutput ¶
type TxOutput struct { Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxOutput) Descriptor ¶
func (*TxOutput) ProtoMessage ¶
func (*TxOutput) ProtoMessage()
func (*TxOutput) XXX_DiscardUnknown ¶
func (m *TxOutput) XXX_DiscardUnknown()
func (*TxOutput) XXX_Marshal ¶
func (*TxOutput) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.