Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config Application configuration structure
func (*Config) ListenAddress ¶
ListenAddress returns listen string
type DBConfig ¶
type DBConfig struct { Dialect string Hostname string Port uint16 Username string Password string Name string Charset string Prefix string Retries int }
DBConfig structure
type EnvConfig ¶
type EnvConfig struct { DBHostname string `envconfig:"db_hostname" required:"false" default:"localhost"` DBPort uint16 `envconfig:"db_port" required:"false" default:"5432"` DBName string `envconfig:"db_name" required:"false" default:"ruiandb"` DBUser string `envconfig:"db_user" required:"false" default:"postgres"` DBPassword string `envconfig:"db_password" required:"false" default:"password"` DBRetries int `envconfig:"db_retries" required:"false" default:"1"` ListenIP string `envconfig:"listen_ip" required:"false" default:"0.0.0.0"` ListenPort uint16 `envconfig:"listen_port" required:"false" default:"8080"` }
EnvConfig stores config from ENV
Click to show internal directories.
Click to hide internal directories.