testutil

package
v0.0.0-...-e1fa791 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMqContainer

type RabbitMqContainer struct {
	ConnString string
	// contains filtered or unexported fields
}

RabbitMqContainer is a struct representing a testcontainers/rabbitmq instances intended to be used for testing.

func GetRabbitMqContainer

func GetRabbitMqContainer(ctx context.Context) (*RabbitMqContainer, error)

GetRabbitMqContainer initializes a testcontainer for RabbitMQ and toxiproxy in the form of a RabbitMqContainer.

func (*RabbitMqContainer) Close

func (r *RabbitMqContainer) Close(ctx context.Context) error

Close closes all containers associated with a RabbitMqContainer, and removes the network interface.

func (*RabbitMqContainer) DeclareEntities

func (r *RabbitMqContainer) DeclareEntities(ctx context.Context) error

DeclareEntities uses the utility function to declare RabbitMQ entities for the associated testcontainer instance.

func (*RabbitMqContainer) Disconnect

func (r *RabbitMqContainer) Disconnect() error

Disconnect disconnects the network interface of the RabbitMQ container using toxiproxy.

func (*RabbitMqContainer) Reconnect

func (r *RabbitMqContainer) Reconnect() error

Reconnect reconnects the network interface of the RabbitMQ container using toxiproxy.

Jump to

Keyboard shortcuts

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