rabbitmqdocker

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidStatus = errors.New("invalid status code")

ErrInvalidStatus is returned whenever the aliveness message retruns a not ok status.

Functions

func NewContainer

func NewContainer(
	user,
	pass string,
	opts ...Option,
) (*dockertest.Resource, error)

NewContainer creates a new Rabbit MQ container.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures an BTC Node Docker.

func WithContainerName

func WithContainerName(name string) Option

WithContainerName configures the PSQL Container Name, if empty, a random one will be picked.

func WithExpiration added in v0.0.2

func WithExpiration(duration time.Duration) Option

WithExpiration terminates the container after a period has passed.

func WithPool

func WithPool(pool *dockertest.Pool) Option

WithPool sets the docker container pool.

func WithPort

func WithPort(port string) Option

WithPort sets the port to bind the container, default 5432.

Jump to

Keyboard shortcuts

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