Documentation ¶
Overview ¶
Package netpb is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Hello OK Peers PeerInfo Message
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hello ¶
type Hello struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"` }
func HelloMessageFromProto ¶
HelloMessageFromProto parse the data into Hello message
func (*Hello) Descriptor ¶
func (*Hello) GetClientVersion ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
type Message ¶
type Message struct { ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Data []byte `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) GetChainId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type OK ¶
type OK struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"` }
func OKMessageFromProto ¶
OKMessageFromProto parse the data into OK message
func (*OK) Descriptor ¶
func (*OK) GetClientVersion ¶
func (*OK) ProtoMessage ¶
func (*OK) ProtoMessage()
type PeerInfo ¶
type PeerInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Addrs []string `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"` }
func (*PeerInfo) Descriptor ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
type Peers ¶
type Peers struct {
Peers []*PeerInfo `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
}
func (*Peers) Descriptor ¶
func (*Peers) ProtoMessage ¶
func (*Peers) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.