MCPcopy
hub / github.com/thanos-io/thanos / HTTPClient

Interface HTTPClient

pkg/promclient/promclient.go:65–67  ·  view source on GitHub ↗

HTTPClient sends an HTTP request and returns the response.

Source from the content-addressed store, hash-verified

63
64// HTTPClient sends an HTTP request and returns the response.
65type HTTPClient interface {
66 Do(*http.Request) (*http.Response, error)
67}
68
69// Client represents a Prometheus API client.
70type Client struct {

Callers 6

doGetFunction · 0.65
req2xxMethod · 0.65
ConfiguredFlagsMethod · 0.65
SnapshotMethod · 0.65
LowestTimestampMethod · 0.65
InitMethod · 0.65

Implementers 14

fakeClientpkg/alert/alert_test.go
querySharderpkg/queryfrontend/shard_query.go
downsampledpkg/queryfrontend/downsampled.go
splitByIntervalpkg/queryfrontend/split_by_interval.go
HTTPClientpkg/clientconfig/http.go
mockHandlerinternal/cortex/querier/queryrange/lim
resultsCacheinternal/cortex/querier/queryrange/res
roundTripperinternal/cortex/querier/queryrange/rou
statsMiddlewareinternal/cortex/querier/queryrange/sta
splitByIntervalinternal/cortex/querier/queryrange/spl
stepAligninternal/cortex/querier/queryrange/ste
limitsMiddlewareinternal/cortex/querier/queryrange/lim

Calls

no outgoing calls

Tested by

no test coverage detected