start

package
v2.0.5-0...-bd0d250 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HealthTimeout = 120 * time.Second
)

Functions

func InitSchema14

func InitSchema14(ctx context.Context, conn *pgx.Conn) error

func IsUnhealthyError

func IsUnhealthyError(err error) bool

func NewBackoffPolicy

func NewBackoffPolicy(ctx context.Context, timeout time.Duration) backoff.BackOff

func NewContainerConfig

func NewContainerConfig() container.Config

func NewHostConfig

func NewHostConfig() container.HostConfig

func Run

func Run(ctx context.Context, fsys afero.Fs) error

func SetupDatabase

func SetupDatabase(ctx context.Context, conn *pgx.Conn, host string, w io.Writer, fsys afero.Fs) error

func SetupLocalDatabase

func SetupLocalDatabase(ctx context.Context, version string, fsys afero.Fs, w io.Writer, options ...func(*pgx.ConnConfig)) error

func StartDatabase

func StartDatabase(ctx context.Context, fsys afero.Fs, w io.Writer, options ...func(*pgx.ConnConfig)) error

func WaitForHealthyService

func WaitForHealthyService(ctx context.Context, timeout time.Duration, started ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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