testcontainers

package
v0.0.0-...-c6cbf5f Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisContainer

type RedisContainer struct {
	Container testcontainers.Container
	Host      string
	Port      int
}

RedisContainer is a Redis testcontainer

func NewRedisContainer

func NewRedisContainer(ctx context.Context, skipReaper bool) (*RedisContainer, error)

func (*RedisContainer) Close

func (rc *RedisContainer) Close() error

func (*RedisContainer) URL

func (rc *RedisContainer) URL() string

URL returns redis connection string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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