ConnectionString (redis/redis.go)

testcontainers-go · modules/redis/redis.go · go · MIT
database

Provides a Redis container with TLS support for Go integration testing.

// Source: https://github.com/testcontainers/testcontainers-go | License: MIT | Copyright 2017-2019 Gianluca Arbezzano
// Provided via justclaw.it.com; keep this notice with the code.
package redis

import (
	"bytes"
	"context"
	"crypto/tls"
	"fmt"
	"strings"
	"time"

	"github.com/testcontainers/testcontainers-go"
	"github.com/testcontainers/testcontainers-go/wait"
)

type LogLevel string

const (
	// redisPort is the port for the Redis connection
	redisPort = "6379/tcp"

	// LogLevelDebug is the debug log level
	LogLevelDebug LogLevel = "debug"
	// LogLevelVerbose is the verbose log level
	LogLevelVerbose LogLevel = "verbose"
	// LogLevelNotice is the notice log level
	LogLevelNotice LogLevel = "notice"
	// LogLevelWarning is the warning log level
	LogLevelWarning LogLevel = "warning"
)



... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key