NewDefaultConfig creates a new configuration with defaults
()
| 25 | |
| 26 | // NewDefaultConfig creates a new configuration with defaults |
| 27 | func 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 |
| 37 | func LoadConfigFromEnv(c *Config) (*Config, error) { |
no outgoing calls