Documentation ¶
Index ¶
- Variables
- type ChainInfo
- func (*ChainInfo) Descriptor() ([]byte, []int)
- func (m *ChainInfo) GetBlockHeight() uint64
- func (m *ChainInfo) GetNodeList() []*Node
- func (m *ChainInfo) Marshal() (dAtA []byte, err error)
- func (m *ChainInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainInfo) ProtoMessage()
- func (m *ChainInfo) Reset()
- func (m *ChainInfo) Size() (n int)
- func (m *ChainInfo) String() string
- func (m *ChainInfo) Unmarshal(dAtA []byte) error
- func (m *ChainInfo) XXX_DiscardUnknown()
- func (m *ChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainInfo) XXX_Merge(src proto.Message)
- func (m *ChainInfo) XXX_Size() int
- func (m *ChainInfo) XXX_Unmarshal(b []byte) error
- type ChainList
- func (*ChainList) Descriptor() ([]byte, []int)
- func (m *ChainList) GetChainIdList() []string
- func (m *ChainList) Marshal() (dAtA []byte, err error)
- func (m *ChainList) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainList) ProtoMessage()
- func (m *ChainList) Reset()
- func (m *ChainList) Size() (n int)
- func (m *ChainList) String() string
- func (m *ChainList) Unmarshal(dAtA []byte) error
- func (m *ChainList) XXX_DiscardUnknown()
- func (m *ChainList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainList) XXX_Merge(src proto.Message)
- func (m *ChainList) XXX_Size() int
- func (m *ChainList) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetNodeAddress() string
- func (m *Node) GetNodeId() string
- func (m *Node) GetNodeTlsCert() []byte
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ChainInfo ¶
type ChainInfo struct { // 块高 BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // 节点列表 NodeList []*Node `protobuf:"bytes,2,rep,name=node_list,json=nodeList,proto3" json:"node_list,omitempty"` }
区块链信息
func (*ChainInfo) Descriptor ¶
func (*ChainInfo) GetBlockHeight ¶
func (*ChainInfo) GetNodeList ¶
func (*ChainInfo) MarshalToSizedBuffer ¶
func (*ChainInfo) ProtoMessage ¶
func (*ChainInfo) ProtoMessage()
func (*ChainInfo) XXX_DiscardUnknown ¶
func (m *ChainInfo) XXX_DiscardUnknown()
func (*ChainInfo) XXX_Marshal ¶
func (*ChainInfo) XXX_Unmarshal ¶
type ChainList ¶
type ChainList struct {
ChainIdList []string `protobuf:"bytes,1,rep,name=chain_id_list,json=chainIdList,proto3" json:"chain_id_list,omitempty"`
}
链 ID 列表
func (*ChainList) Descriptor ¶
func (*ChainList) GetChainIdList ¶
func (*ChainList) MarshalToSizedBuffer ¶
func (*ChainList) ProtoMessage ¶
func (*ChainList) ProtoMessage()
func (*ChainList) XXX_DiscardUnknown ¶
func (m *ChainList) XXX_DiscardUnknown()
func (*ChainList) XXX_Marshal ¶
func (*ChainList) XXX_Unmarshal ¶
type Node ¶
type Node struct { // 节点标识符 NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // 节点地址 NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` // 节点的 TLS 证书 NodeTlsCert []byte `protobuf:"bytes,3,opt,name=node_tls_cert,json=nodeTlsCert,proto3" json:"node_tls_cert,omitempty"` }
区块链节点信息
func (*Node) Descriptor ¶
func (*Node) GetNodeAddress ¶
func (*Node) GetNodeTlsCert ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.