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

Method client

api/client.go:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (cfg *Config) client() http.Client {
61 if cfg.Client == nil {
62 return http.Client{
63 Transport: cfg.roundTripper(),
64 }
65 }
66 return *cfg.Client
67}
68
69func (cfg *Config) validate() error {
70 if cfg.Client != nil && cfg.RoundTripper != nil {

Callers 1

NewClientFunction · 0.80

Calls 1

roundTripperMethod · 0.95

Tested by

no test coverage detected