httpProvider fetches config from an HTTP/HTTPS URL with RED metrics.
| 40 | |
| 41 | // httpProvider fetches config from an HTTP/HTTPS URL with RED metrics. |
| 42 | type httpProvider struct { |
| 43 | url string |
| 44 | urlForMetrics string // scheme+host+path only, no query/fragment |
| 45 | client *http.Client |
| 46 | requestDuration *prometheus.HistogramVec |
| 47 | } |
| 48 | |
| 49 | func newHTTPProvider(rawURL string, client *http.Client, requestDuration *prometheus.HistogramVec) *httpProvider { |
| 50 | urlForMetrics := rawURL |
nothing calls this directly
no outgoing calls
no test coverage detected