testhelper

package
v0.0.0-...-8d5351d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect int

Dialect containers metadata that differ across SQL database

const (
	DialectUnknown Dialect = iota
	DialectMySQL
	DialectPostgres
)

Enum values for Dialect

func (Dialect) String

func (d Dialect) String() string

type DockerConnection

type DockerConnection struct {
	MustClose func()
	URL       string
	Dialect   string
}

DockerConnection contains connections to a docker container

type DockerPool

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

DockerPool wraps dockertest.Pool

func MustCreatePool

func MustCreatePool() *DockerPool

MustCreatePool creates new docker remove API client instance

func (*DockerPool) MustCreateDB

func (dp *DockerPool) MustCreateDB(d Dialect) *DockerConnection

MustCreateDB creates new database container

Jump to

Keyboard shortcuts

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