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

Interface HTTPDoer

prometheus/push/push.go:64–66  ·  prometheus/push/push.go::HTTPDoer

HTTPDoer is an interface for the one method of http.Client that is used by Pusher

Source from the content-addressed store, hash-verified

62
63// HTTPDoer is an interface for the one method of http.Client that is used by Pusher
64type HTTPDoer interface {
65 Do(*http.Request) (*http.Response, error)
66}
67
68// Pusher manages a push to the Pushgateway. Use New to create one, configure it
69// with its methods, and finally use the Add or Push method to push.

Callers 4

DeleteMethod · 0.65
pushMethod · 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