Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartPostgresContainer ¶
func StartPostgresContainer(ctx context.Context, c DatabaseConfig) error
StartPostgresContainer starts a PostgreSQL container with persistent storage and checks for readiness with a PING using exponential backoff.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Host string `split_words:"true" default:"localhost"`
Port int `split_words:"true" default:"5432"`
User string `split_words:"true" default:"postgres"`
Pass string `split_words:"true" default:"password"`
Name string `split_words:"true" default:"ratchet"`
DisableTLS bool `split_words:"true" default:"true"`
}
func (DatabaseConfig) URL ¶
func (c DatabaseConfig) URL() string
Click to show internal directories.
Click to hide internal directories.