mq

package module
v0.0.0-...-7d0fbdd Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeferPubAsync

func DeferPubAsync(topic string, delay time.Duration, body []byte) error

func Init

func Init(opts ...OptionFunc) (e error)

func PubAsync

func PubAsync(topic string, body []byte) error

func StopConsumers

func StopConsumers()

func StopProducer

func StopProducer()

func Sub

func Sub(topic, channel string, handler nsq.Handler) (e error)

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

type Options

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

type Route

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

Jump to

Keyboard shortcuts

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