BasicAuth is used for authorization on /metrics handlers
| 38 | |
| 39 | // BasicAuth is used for authorization on /metrics handlers |
| 40 | type BasicAuth struct { |
| 41 | Username string `yaml:"username"` |
| 42 | Password string `yaml:"password"` |
| 43 | } |
| 44 | |
| 45 | // MakeAuthAPI turns a util.JSONRequestHandler function into an http.Handler which authenticates the request. |
| 46 | func MakeAuthAPI( |
nothing calls this directly
no outgoing calls
no test coverage detected