MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / NewDefaultConfig

Function NewDefaultConfig

workers/config.go:25–30  ·  view source on GitHub ↗

NewDefaultConfig creates a new configuration with defaults

()

Source from the content-addressed store, hash-verified

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

Callers 1

NewDefaultConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected