Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelaySend ¶
func RelaySend(chainMessage *msg1.ChainMessage) (*msg1.ChainMessage, error)
* 无错无返回表示不需要转发
func Send ¶
func Send(msg *msg1.ChainMessage) (*msg1.ChainMessage, error)
* 发送ChainMessage消息的唯一方法 1.找出发送的目标地址和方式 2.根据情况处理校验,加密,压缩等 3.建立合适的通道并发送,比如libp2p的Pipe并Write消息流 4.等待即时的返回,校验,解密,解压缩等
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.