Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeTypes_Api NodeTypes = "api" NodeTypes_Storage = "stprage" NodeTypes_Master = "master" )
View Source
const HASH_LEN = 32
View Source
const HEADER_LEN = 4
View Source
const PROROCOL_LEN = 4
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodePacket ¶
type NodePacket struct { Protocol protocol.GossProtocol //协议号. Types NodeTypes //节点类型. IP string //节点ip. Size int64 }
NodePacket 节点管理数据.
Click to show internal directories.
Click to hide internal directories.