Documentation ¶
Index ¶
- Constants
- func GetEnodes() (int, string)
- func GetGroup() (int, string)
- func Init(id discover.NodeID, ipa *net.UDPAddr)
- func P2pInit(port int, bn string, nodekeyfile string, staticnodesfile string)
- func RegisterCallback(callbackfunc func(interface{}))
- func Send2Node(enode string, msg *string)
- func SendMsg(msg string)
- func StartTest()
- type Emitter
Constants ¶
View Source
const ( // 0/1, 1 for test TEST = 0 //dcrm test P2PTEST = 0 //p2p group test, bufio/stdin )
Variables ¶
This section is empty.
Functions ¶
func GetEnodes ¶
GetEnodes get enodes info return: string self.enode
int count of peers string peers.id delimiter with dcrmdelimiter
func RegisterCallback ¶
func RegisterCallback(callbackfunc func(interface{}))
Types ¶
Click to show internal directories.
Click to hide internal directories.