start

package
v1.127.4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabase   = errors.New("database is not healthy")
	HealthTimeout = 120 * time.Second
)

Functions

func NewContainerConfig added in v1.47.1

func NewContainerConfig() container.Config

func NewHostConfig added in v1.96.5

func NewHostConfig() container.HostConfig

func RetryEverySecond added in v1.96.5

func RetryEverySecond(ctx context.Context, callback func() bool, timeout time.Duration) bool

func Run

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

func SetupDatabase added in v1.47.3

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

func StartDatabase

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

func WaitForHealthyService added in v1.96.5

func WaitForHealthyService(ctx context.Context, container string, timeout time.Duration) bool

func WithSyslogConfig added in v1.47.0

func WithSyslogConfig(hostConfig container.HostConfig) container.HostConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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