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

Function NewDefaultConfig

fetcher/config.go:36–43  ·  view source on GitHub ↗

NewDefaultConfig returns a new Config instance with default values.

()

Source from the content-addressed store, hash-verified

34
35// NewDefaultConfig returns a new Config instance with default values.
36func NewDefaultConfig() Config {
37 return Config{
38 UserAgent: "imgproxy/" + version.Version,
39 DownloadTimeout: 5 * time.Second,
40 MaxRedirects: 10,
41 Transport: transport.NewDefaultConfig(),
42 }
43}
44
45// LoadConfigFromEnv loads config variables from env
46func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 4

NewDefaultConfigFunction · 0.92
SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92

Calls 1

NewDefaultConfigFunction · 0.92

Tested by 3

SetupSuiteMethod · 0.74
SetupSuiteMethod · 0.74
SetupSuiteMethod · 0.74