postgres

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Tag              string
	Options          []string
	ShmSize          int64
	Memory           int64
	OOMKillDisable   bool
	PrintLogsOnError bool
	NetworkID        string
}

type Opt

type Opt func(*Config)

func WithMemory added in v0.20.3

func WithMemory(memory int64) Opt

func WithNetwork added in v0.36.2

func WithNetwork(network *docker.Network) Opt

func WithOOMKillDisable added in v0.20.3

func WithOOMKillDisable(disable bool) Opt

func WithOptions

func WithOptions(options ...string) Opt

func WithPrintLogsOnError added in v0.23.0

func WithPrintLogsOnError(printLogsOnError bool) Opt

func WithShmSize added in v0.15.8

func WithShmSize(shmSize int64) Opt

func WithTag

func WithTag(tag string) Opt

type Resource added in v0.20.0

type Resource struct {
	DB       *sql.DB
	DBDsn    string
	Database string
	Password string
	User     string
	Host     string
	Port     string

	ContainerName string
	ContainerID   string
}

func Setup added in v0.20.0

func Setup(pool *dockertest.Pool, d resource.Cleaner, opts ...func(*Config)) (*Resource, error)

Jump to

Keyboard shortcuts

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