testcontainerpostgres

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testcontainerpostgres is an internal testing utility that aids in setting up a Postgres container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	testcontainers.Container
}

Container is a testcontainers-go container for Postgres.

func NewContainer

func NewContainer(ctx context.Context, user string, password string, db string) (*Container, error)

NewContainer starts a new Postgres container using testcontainers-go.

Jump to

Keyboard shortcuts

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