Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Addr string `name:"host" env:"PG_HOST" default:"localhost" help:"Server address, <host> or <host>:<port>"`
User string `env:"PG_USER" default:"${USER}" help:"Database user"`
Pass string `env:"PG_PASSWORD" help:"User password"`
Database string `env:"PG_DATABASE" help:"Database name, uses username if not set"`
SSLMode string `env:"PG_SSLMODE" enum:"default,disable,allow,prefer,require,verify-ca,verify-full" help:"SSL mode"`
Trace pg.TraceFn `json:"-" kong:"-"`
Router server.HTTPRouter `json:"-" kong:"-"` // Which HTTP router to use
Prefix string `help:"Path prefix"` // HTTP Path Prefix
}
func (Config) Description ¶
Click to show internal directories.
Click to hide internal directories.