testrabbit

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BrokerPort = "5672"
View Source
const RabbitPassword = "guest"
View Source
const RabbitUsername = "guest"
View Source
const RabbitVersion = "3.8"

Variables

This section is empty.

Functions

func AutoStartRabbit

func AutoStartRabbit(t *testing.T, ctx context.Context) testcontainers.Container

func BrokerUrl

func BrokerUrl(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) *url.URL

func CreateDurableQueue

func CreateDurableQueue(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container, queueName string)

func CreateExchange

func CreateExchange(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container, exchangeName, exchangeType string)

func CreateNonDurableQueue

func CreateNonDurableQueue(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container, queueName string)

func Host

func Host(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) string

func ManagementPort

func ManagementPort(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) int

func ManagementUrl

func ManagementUrl(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) string

func TerminateContainer

func TerminateContainer(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container)

Types

type Binding

type Binding = map[string]interface{}

func FindBindings

func FindBindings(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) []Binding

type Exchange

type Exchange = map[string]interface{}

func FindOwnedExchanges

func FindOwnedExchanges(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) []Exchange

func FindQueues

func FindQueues(t *testing.T, ctx context.Context, rabbitContainer testcontainers.Container) []Exchange

type Queue

type Queue = map[string]interface{}

Jump to

Keyboard shortcuts

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