MCPcopy
hub / github.com/prometheus/client_golang / Client

Interface Client

api/client.go:77–80  ·  api/client.go::Client

Client is the interface for an API client.

Source from the content-addressed store, hash-verified

75
76// Client is the interface for an API client.
77type Client interface {
78 URL(ep string, args map[string]string) *url.URL
79 Do(context.Context, *http.Request) (*http.Response, []byte, error)
80}
81
82type CloseIdler interface {
83 CloseIdleConnections()

Callers 7

BenchmarkClientFunction · 0.95
attemptWriteMethod · 0.65
DoMethod · 0.65
runMainFunction · 0.65
runMainFunction · 0.65

Implementers 5

httpClientapi/client.go
apiClientImplapi/prometheus/v1/api.go
apiTestClientapi/prometheus/v1/api_test.go
testClientapi/prometheus/v1/api_test.go
httpTestClientapi/prometheus/v1/api_test.go

Calls

no outgoing calls

Tested by

no test coverage detected