Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct { Host string `yaml:"host"` Database string `yaml:"name" binding:"required"` User string `yaml:"user" binding:"required"` Password string `yaml:"password"` SSLMode string `yaml:"ssl_mode"` }
DB is a configuration structure for database configuration options. It is generally loaded from db.yml.
func (DB) PostgresDSN ¶
PostgresDSN generates a Postgres connection string from a valid DB.
Click to show internal directories.
Click to hide internal directories.