Documentation
¶
Index ¶
Constants ¶
View Source
const (
Port = "6379/tcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // TLS settings UseTLS bool SecureURL bool MTLSDisabled bool UseAddress bool UseHostPort bool UseURL bool // contains filtered or unexported fields }
Config represents the configuration for a Redis container
type Container ¶
type Container struct { URL string Addrs []string Host string Port int TLSConfig *tls.Config // contains filtered or unexported fields }
Container represents a running Redis container
type Option ¶
type Option func(*Config)
Option is a function that configures a Config
func WithAddress ¶
func WithAddress() Option
WithAddress sets the container to use address-based connection
func WithHostPort ¶
func WithHostPort() Option
WithHostPort sets the container to use host and port based connection
func WithReuse ¶
WithReuse sets the container to be reused, providing a name to identify the container. This container is not cleaned up when the test completes.
Click to show internal directories.
Click to hide internal directories.