rabbitmq

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(message string, options Options, ch *amqp.Channel, count int)

Publish ...

func Setup

func Setup(options Options) (*amqp.Connection, *amqp.Channel)

Setup ...

func SetupConsumer

func SetupConsumer(options ConsumerOptions, ch *amqp.Channel) *amqp.Channel

SetupConsumer ...

Types

type Config added in v0.1.5

type Config struct {
	tc.ContainerConfig
	Host string
	Port int64
}

Config ...

func StartRabbitmqContainer added in v0.1.5

func StartRabbitmqContainer(ctx context.Context, options ContainerOptions) (rabbitmqC testcontainers.Container, rabbitmqConfig Config, err error)

StartRabbitmqContainer ...

type ConsumerOptions

type ConsumerOptions struct {
	ExchangeName       string
	QueueName          string
	ExchangeRoutingKey string
	QueueLength        int64
}

ConsumerOptions ...

type ContainerOptions added in v0.1.5

type ContainerOptions struct {
	tc.ContainerOptions
}

ContainerOptions ...

type Options

type Options struct {
	Host               string
	Port               int64
	ExchangeName       string
	ExchangeRoutingKey string
}

Options for RabbitMQ...

func (Options) ConnectionURI

func (options Options) ConnectionURI() string

ConnectionURI ...

Jump to

Keyboard shortcuts

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