nsq

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Address string
}

func NewClient

func NewClient(address string) *Client

NewClient

func (Client) Listen

func (client Client) Listen(param Param, handler nsq.Handler) error

Listen make topic listener

func (Client) NewProducer

func (client Client) NewProducer() (*nsq.Producer, error)

NewProducer return nsq producer instance with error

type Param

type Param struct {
	Topic               string
	Channel             string
	Debug               bool
	LookupdPollInterval int // reconnect time interval
}

Jump to

Keyboard shortcuts

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