| 11 | ) |
| 12 | |
| 13 | type Config struct { |
| 14 | OriginURL *url.URL |
| 15 | ProxyURL *url.URL |
| 16 | ProxyURLString string // memoised - derives from ProxyURL |
| 17 | ListenAddr string |
| 18 | SSOURL *url.URL |
| 19 | SSOURLString string // memoised - derives from SSOURL |
| 20 | SSOSecret string |
| 21 | CookieSecret string |
| 22 | AllowAll bool |
| 23 | AllowGroups StringSet |
| 24 | BasicAuth string |
| 25 | Whitelist string |
| 26 | WhitelistPrefix string |
| 27 | UsernameHeader string |
| 28 | GroupsHeader string |
| 29 | Timeout time.Duration |
| 30 | SRVAbandonAfter time.Duration |
| 31 | LogRequests bool |
| 32 | } |
| 33 | |
| 34 | func ParseConfig() (*Config, error) { |
| 35 | missing := func(name string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected