event

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL