temporary

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	*postgresdb.PostgresDB
	// contains filtered or unexported fields
}

func NewTemporaryPostgres

func NewTemporaryPostgres(ctx context.Context, params Params) (*Connector, error)

func (*Connector) Shutdown

func (tc *Connector) Shutdown(ctx context.Context) error

type Params

type Params struct {
	WaitInterval   time.Duration
	StartupTimeout time.Duration
	User           string
	Password       string
	Database       string
	HostPort       int
}

func (Params) HostPortString

func (p Params) HostPortString() string

Jump to

Keyboard shortcuts

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