MCPcopy
hub / github.com/grafana/dskit / httpProvider

Struct httpProvider

runtimeconfig/provider.go:42–47  ·  view source on GitHub ↗

httpProvider fetches config from an HTTP/HTTPS URL with RED metrics.

Source from the content-addressed store, hash-verified

40
41// httpProvider fetches config from an HTTP/HTTPS URL with RED metrics.
42type 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
49func newHTTPProvider(rawURL string, client *http.Client, requestDuration *prometheus.HistogramVec) *httpProvider {
50 urlForMetrics := rawURL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected