mq

package module
v0.0.0-...-b44f8de Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeferPub

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

func Init

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

func Pub

func Pub(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 Option

type Option func(*Options)

func Lookupd

func Lookupd(addr string) Option

func Nsqd

func Nsqd(addr string) Option

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