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
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 ¶ added in v1.0.0
HelloMessageFromProto parse the data into Hello message
func (*Hello) Descriptor ¶
func (*Hello) GetClientVersion ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
type OK ¶ added in v1.0.0
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 ¶ added in v1.0.0
OKMessageFromProto parse the data into OK message
func (*OK) Descriptor ¶ added in v1.0.0
func (*OK) GetClientVersion ¶ added in v1.0.0
func (*OK) ProtoMessage ¶ added in v1.0.0
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.