NewDefaultConfig creates a new default configuration
()
| 45 | |
| 46 | // NewDefaultConfig creates a new default configuration |
| 47 | func NewDefaultConfig() Config { |
| 48 | return Config{ |
| 49 | Workers: workers.NewDefaultConfig(), |
| 50 | FallbackImage: auximageprovider.NewDefaultStaticConfig(), |
| 51 | WatermarkImage: auximageprovider.NewDefaultStaticConfig(), |
| 52 | Fetcher: fetcher.NewDefaultConfig(), |
| 53 | ClientFeatures: clientfeatures.NewDefaultConfig(), |
| 54 | Handlers: HandlerConfigs{ |
| 55 | Processing: processinghandler.NewDefaultConfig(), |
| 56 | Stream: streamhandler.NewDefaultConfig(), |
| 57 | }, |
| 58 | Server: server.NewDefaultConfig(), |
| 59 | Security: security.NewDefaultConfig(), |
| 60 | Processing: processing.NewDefaultConfig(), |
| 61 | OptionsParser: optionsparser.NewDefaultConfig(), |
| 62 | Cookies: cookies.NewDefaultConfig(), |
| 63 | Monitoring: monitoring.NewDefaultConfig(), |
| 64 | ErrorReport: errorreport.NewDefaultConfig(), |
| 65 | ConditionalHeaders: conditionalheaders.NewDefaultConfig(), |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // LoadConfigFromEnv loads configuration from environment variables |
| 70 | func LoadConfigFromEnv(c *Config) (*Config, error) { |
nothing calls this directly
no test coverage detected