message

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedBrokers = []Broker{AmqpBroker}

Functions

func ValidationOpts

func ValidationOpts(opts *Options) error

Types

type Broker

type Broker string
const AmqpBroker Broker = "amqp"

type Options

type Options struct {
	Broker Broker

	AmqpURI   string
	AmqpQueue string
}

type Producer

type Producer interface {
	Publish(message interface{}) error
	Close() error
}

func NewProducer

func NewProducer(opts *Options) (Producer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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