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

Function NewDefaultConfig

cookies/config.go:24–30  ·  view source on GitHub ↗

NewDefaultConfig creates a new Config instance with default values.

()

Source from the content-addressed store, hash-verified

22
23// NewDefaultConfig creates a new Config instance with default values.
24func NewDefaultConfig() Config {
25 return Config{
26 CookiePassthroughAll: false,
27 CookieBaseURL: "",
28 CookiePassthrough: false,
29 }
30}
31
32// LoadConfigFromEnv creates a new Config instance loading values from environment variables.
33func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 2

NewDefaultConfigFunction · 0.92
SetupSuiteMethod · 0.92

Calls

no outgoing calls

Tested by 1

SetupSuiteMethod · 0.74