test_utils

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQLContainer

type PostgreSQLContainer struct {
	testcontainers.Container
	Config PostgreSQLContainerConfig
}

func NewPostgreSQLContainer

func NewPostgreSQLContainer(ctx context.Context, opts ...PostgreSQLContainerOption) (*PostgreSQLContainer, error)

func (PostgreSQLContainer) GetDSN

func (c PostgreSQLContainer) GetDSN() string

type PostgreSQLContainerConfig

type PostgreSQLContainerConfig struct {
	ImageTag   string
	User       string
	Password   string
	MappedPort string
	Database   string
	Host       string
}

type PostgreSQLContainerOption

type PostgreSQLContainerOption func(c *PostgreSQLContainerConfig)

Jump to

Keyboard shortcuts

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