Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
Db is the database object
Functions ¶
Types ¶
type Config ¶
type Config struct { User string `env:"DB_USER"` Password string `env:"DB_PASSWORD"` Port uint64 `env:"DB_PORT" envDefault:"5432"` Host string `env:"DB_HOST"` Name string `env:"DB_NAME"` DbURL string `env:"DATABASE_URL"` }
Config is the structure used to load db credentials from the environment.
Click to show internal directories.
Click to hide internal directories.