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

Function NewDefaultConfig

errorreport/sentry/config.go:26–32  ·  view source on GitHub ↗

NewDefaultConfig creates a new Config instance with default values.

()

Source from the content-addressed store, hash-verified

24
25// NewDefaultConfig creates a new Config instance with default values.
26func NewDefaultConfig() Config {
27 return Config{
28 DSN: "",
29 Release: fmt.Sprintf("imgproxy@%s", version.Version),
30 Environment: "production",
31 }
32}
33
34// LoadConfigFromEnv creates a new Config instance loading values from environment variables.
35func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 1

NewDefaultConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected