testcontainers

package
v0.0.0-...-0e86f15 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLContainer

type MySQLContainer struct {
	// contains filtered or unexported fields
}

func NewMySQLContainer

func NewMySQLContainer(ctx context.Context) (*MySQLContainer, error)

func (*MySQLContainer) Dsn

func (c *MySQLContainer) Dsn() string

func (*MySQLContainer) Terminate

func (c *MySQLContainer) Terminate(ctx context.Context) error

type PostgresContainer

type PostgresContainer struct {
	// contains filtered or unexported fields
}

func NewPostgresContainer

func NewPostgresContainer(ctx context.Context) (*PostgresContainer, error)

func (*PostgresContainer) Dsn

func (c *PostgresContainer) Dsn() string

func (*PostgresContainer) Terminate

func (c *PostgresContainer) Terminate(ctx context.Context) error

Jump to

Keyboard shortcuts

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