NewDefaultConfig creates a new configuration with defaults
()
| 23 | |
| 24 | // NewDefaultConfig creates a new configuration with defaults |
| 25 | func NewDefaultConfig() Config { |
| 26 | return Config{ |
| 27 | RequestsQueueSize: 0, |
| 28 | WorkersNumber: runtime.GOMAXPROCS(0) * 2, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // LoadConfigFromEnv loads config from environment variables |
| 33 | func LoadConfigFromEnv(c *Config) (*Config, error) { |