websocket

package
v0.0.0-...-8e9f79f Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: LGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerT

type ConsumerT struct {
	// contains filtered or unexported fields
}

func (*ConsumerT) HandleMessage

func (c *ConsumerT) HandleMessage(msg *nsq.Message) error

type PubSubAPI

type PubSubAPI struct {
	// contains filtered or unexported fields
}

func NewPubSubAPI

func NewPubSubAPI(nsqHost string, nsqInterval time.Duration, log *log.Logger) *PubSubAPI

func (*PubSubAPI) NewToken

func (pubsub *PubSubAPI) NewToken(ctx context.Context, address string) (*rpc.Subscription, error)

func (*PubSubAPI) PingPong

func (pubsub *PubSubAPI) PingPong(ctx context.Context, targetRpcId rpc.ID) (*rpc.Subscription, error)

type Type

type Type byte

Type determines the kind of filter and is used to put the filter in to the correct bucket when added.

const (
	// UnknownSubscription indicates an unknown subscription type
	UnknownSubscription Type = iota

	// 发现新token
	NewErc20

	// LastSubscription keeps track of the last index
	LastIndexSubscription
)

Jump to

Keyboard shortcuts

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