testcontainers

package
v0.0.0-...-c5548cf Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 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) (*RedisContainer, error)

func (*RedisContainer) Close

func (rc *RedisContainer) Close() error

func (*RedisContainer) URL

func (rc *RedisContainer) URL() string

URL returns redis connection string

Jump to

Keyboard shortcuts

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