Documentation
¶
Overview ¶
Package event 从区块链节点监听event, 此处只监听跨链交易event
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventsSubscribe ¶
func EventsSubscribe(remote string, e chan<- error) context.CancelFunc
EventsSubscribe 从websocket服务端订阅event remote 服务端地址 example "tcp://192.168.168.27:26657"
func StartEventSubscibe ¶
func StartEventSubscibe(conf *config.Config) (cancel context.CancelFunc, err error)
StartEventSubscibe Start event listening
func SubscribeRemote ¶
func SubscribeRemote(remote string, subscriber string, query string, txs chan<- interface{}) (context.CancelFunc, error)
SubscribeRemote 订阅接口,暴露检测点以便于测试
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.