Documentation
¶
Index ¶
- func DeferPubAsync(topic string, delay time.Duration, body []byte) error
- func Init(opts ...OptionFunc) (e error)
- func PubAsync(topic string, body []byte) error
- func StopConsumers()
- func StopProducer()
- func Sub(topic, channel string, handler nsq.Handler) (e error)
- type OptionFunc
- type Options
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(opts ...OptionFunc) (e error)
func StopConsumers ¶
func StopConsumers()
func StopProducer ¶
func StopProducer()
Types ¶
type OptionFunc ¶
type OptionFunc func(*Options)
func Lookupd ¶
func Lookupd(addr string) OptionFunc
func Nsqd ¶
func Nsqd(addr string) OptionFunc
func Writer ¶
func Writer(writer io.Writer) OptionFunc
Click to show internal directories.
Click to hide internal directories.