rmqproducer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Uri          string
	Exchange     string
	ExchangeType string
	RoutingKey   string
	Reliable     bool
}

type Option

type Option func(*Options)

func WithConfig

func WithConfig(config *Config) Option

type Options

type Options struct {
	Config *Config
}

type RmqProducer

type RmqProducer interface {
	Init(...Option) error
	Options() Options
	Publish(body []byte) error
}

func NewRmqProducer

func NewRmqProducer(opts ...Option) (RmqProducer, error)

Jump to

Keyboard shortcuts

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