test

package
v0.0.0-...-1fef4f5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(ctx context.Context, container testcontainers.Container)

Types

type MysqlContainer

type MysqlContainer struct {
	Username string `validate:"required" yaml:"username" json:"username"`
	Database string `validate:"required" yaml:"database" json:"database"`
	Password string `validate:"required" yaml:"password" json:"password"`
}

func (MysqlContainer) OpenConnection

func (tester MysqlContainer) OpenConnection(ctx context.Context, container testcontainers.Container) (*sql.DB, error)

Jump to

Keyboard shortcuts

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