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

Function NewDefaultConfig

httpheaders/conditionalheaders/config.go:27–34  ·  view source on GitHub ↗

NewDefaultConfig creates a new configuration with defaults

()

Source from the content-addressed store, hash-verified

25
26// NewDefaultConfig creates a new configuration with defaults
27func NewDefaultConfig() Config {
28 return Config{
29 LastModifiedEnabled: true,
30 LastModifiedBuster: time.Time{},
31 ETagEnabled: true,
32 ETagBuster: "",
33 }
34}
35
36// LoadConfigFromEnv loads config from environment variables
37func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 2

NewDefaultConfigFunction · 0.92
SetupSuiteMethod · 0.92

Calls

no outgoing calls

Tested by 1

SetupSuiteMethod · 0.74