Versions in this module Expand all Collapse all v0 v0.1.0 Feb 14, 2024 Changes in this version + type ConnInfo struct + Host string + PortMapper func(containerPort string) (hostPort string) + func Start(service Service, opts ...Option) (*ConnInfo, error) + func (c ConnInfo) Close() error + type MySQL struct + Version string + func (m *MySQL) Environment() []string + func (m *MySQL) ImageRepository() string + func (m *MySQL) ImageTag() string + func (m *MySQL) Password() string + func (m *MySQL) Port() string + func (m *MySQL) StartupPorts() []string + func (m *MySQL) TestConn(progressLogger TestLogger, connInfo *ConnInfo) error + func (m *MySQL) Username() string + type Option func(*config) *config + func WithKillAfterSeconds(seconds int) Option + func WithLogger(l TestLogger) Option + type Postgres struct + Version string + func (p *Postgres) Environment() []string + func (p *Postgres) ImageRepository() string + func (p *Postgres) ImageTag() string + func (p *Postgres) Password() string + func (p *Postgres) Port() string + func (p *Postgres) StartupPorts() []string + func (p *Postgres) TestConn(progressLogger TestLogger, connInfo *ConnInfo) error + func (p *Postgres) Username() string + type Service interface + Environment func() []string + ImageRepository func() string + ImageTag func() string + StartupPorts func() []string + TestConn func(progressLogger TestLogger, info *ConnInfo) error + type TestLogger interface + Log func(args ...any) + Logf func(format string, args ...any)