containers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PostgresTestURL is the URL to connect to when running postgres inside a docker container.
	PostgresTestURL = "postgres://postgres@localhost?sslmode=disable"
)

Variables

This section is empty.

Functions

func RunPostgres

func RunPostgres() (string, error)

RunPostgres starts a docker container running postgres and initialize a database. The container needs to be killed at the end of a test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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