queue

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer struct {
	Producer *nsq.Producer
}

Producer wraps the NSQ producer object.

func New

func New(address, topic string) (Producer, error)

New creates a new NSQ producer.

func (Producer) Produce

func (p Producer) Produce(topic string, message []byte) error

Produce writes a message to the connection's topic.

Jump to

Keyboard shortcuts

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