rabbitmq

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerOptions

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

ConsumerOptions ...

func (*ConsumerOptions) SetupQueue added in v0.2.2

func (options *ConsumerOptions) SetupQueue(ch *amqp.Channel) error

SetupQueue ...

type Container added in v0.2.2

type Container struct {
	Container testcontainers.Container
	tc.ContainerConfig
	Host string
	Port int64
}

Container ...

func Start added in v0.2.2

func Start(ctx context.Context, options Options) (Container, error)

Start ...

func (*Container) Terminate added in v0.2.2

func (c *Container) Terminate(ctx context.Context)

Terminate ...

type Options

type Options struct {
	tc.ContainerOptions
	ImageTag string
}

Options ...

type ProducerOptions added in v0.2.2

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

ProducerOptions for rabbitmq

func (*ProducerOptions) ConnectionURI added in v0.2.2

func (options *ProducerOptions) ConnectionURI() string

ConnectionURI ...

func (*ProducerOptions) SetupConnection added in v0.2.2

func (options *ProducerOptions) SetupConnection() (*amqp.Connection, *amqp.Channel, error)

SetupConnection ...

Jump to

Keyboard shortcuts

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