Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `yaml:"port" envconfig:"PORT"` DBconfig DBconfig `yaml:"db_config" envconfig:"DB_CONFIG"` Host string `yaml:"host" envconfig:"HOST"` }
func (*Config) REadFromEnv ¶
func (c *Config) REadFromEnv(logger *zap.SugaredLogger)
func (*Config) ReadFromFile ¶
func (c *Config) ReadFromFile(logger *zap.SugaredLogger) error
Click to show internal directories.
Click to hide internal directories.