Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Env `yaml:"env" mapstructure:"env"` HTTPServer `yaml:"http_server" mapstructure:"http_server"` Postgres `yaml:"postgres" mapstructure:"postgres"` }
var (
ConfigInstance *Config
)
type HTTPServer ¶
type HTTPServer struct { Address string `yaml:"address" mapstructure:"address"` Timeout time.Duration `yaml:"timeout" mapstructure:"timeout"` IdleTimeout time.Duration `yaml:"idle_timeout" mapstructure:"idle_timeout"` ReadTimeout time.Duration `yaml:"read_timeout" mapstructure:"read_timeout"` WriteTimeout time.Duration `yaml:"write_timeout" mapstructure:"write_timeout"` }
type Postgres ¶
type Postgres struct { Host string `yaml:"host" mapstructure:"host"` Port string `yaml:"port" mapstructure:"port"` User string `yaml:"user" mapstructure:"user"` Password string `yaml:"password" mapstructure:"password"` Database string `yaml:"database" mapstructure:"database"` SSLMode string `yaml:"sslmode" mapstructure:"sslmode"` }
Click to show internal directories.
Click to hide internal directories.