Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManifesto ¶
func NewPgxPool ¶
Types ¶
type ConnectionConfig ¶
type ConnectionConfig struct {
Host string `env:"HOST, default=localhost"`
Port int `env:"PORT, default=5432"`
User string `env:"USER, default=postgres"`
Password string `env:"PASSWORD, default=foobar"`
Database string `env:"DB_NAME, default=test"`
SslMode string `env:"SSL_MODE, default=disable"`
}
func (ConnectionConfig) Dsn ¶
func (c ConnectionConfig) Dsn() string
type ModuleConfig ¶
type ModuleConfig struct {
DSN string `` /* 200-byte string literal not displayed */
ConnectionConfig *ConnectionConfig `env:",prefix=PG_"`
}
func (ModuleConfig) Dsn ¶
func (c ModuleConfig) Dsn() string
Click to show internal directories.
Click to hide internal directories.