Documentation ¶
Index ¶
- func CockroachAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func CockroachAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func CockroachContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- func ContainerAddress(ctx context.Context, container testcontainers.Container) (string, error)
- func ContainerAddressInTest(ctx context.Context, tb testing.TB, container testcontainers.Container) string
- func InitDocker(ctx context.Context, containerOptions ...ContainerOption) ([]testcontainers.Container, func() error, error)
- func InitDockerInTest(ctx context.Context, tb testing.TB, containerOptions ...ContainerOption) []testcontainers.Container
- func KafkaAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func KafkaAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func KafkaContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- func NatsAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func NatsAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func NatsAddressWithProtocol(address string) string
- func NatsContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- func PostgresAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func PostgresAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func PostgresContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- func PostgresDatabaseDSN(address, databaseName string) string
- func RabbitMQAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func RabbitMQAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func RabbitMQAddressWithProtocol(address string) string
- func RabbitMQContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- func RedisAddress(ctx context.Context, containers ...testcontainers.Container) (string, error)
- func RedisAddressInTest(ctx context.Context, tb testing.TB, containers ...testcontainers.Container) string
- func RedisContainer(ctx context.Context, networkName string) (testcontainers.Container, error)
- type ContainerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CockroachAddress ¶
func CockroachAddressInTest ¶
func CockroachContainer ¶
func ContainerAddress ¶
func ContainerAddressInTest ¶
func InitDocker ¶
func InitDocker( ctx context.Context, containerOptions ...ContainerOption, ) ([]testcontainers.Container, func() error, error)
func InitDockerInTest ¶
func InitDockerInTest( ctx context.Context, tb testing.TB, containerOptions ...ContainerOption, ) []testcontainers.Container
func KafkaAddress ¶
func KafkaAddressInTest ¶
func KafkaContainer ¶
func NatsAddress ¶
func NatsAddressInTest ¶
func NatsAddressWithProtocol ¶
func NatsContainer ¶
func PostgresAddress ¶
func PostgresAddressInTest ¶
func PostgresContainer ¶
func PostgresDatabaseDSN ¶
func RabbitMQAddress ¶
func RabbitMQAddressInTest ¶
func RabbitMQContainer ¶
func RedisAddress ¶
func RedisAddressInTest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.