WithDialContextFunc allows you to override the func gets used for the dialing. The default is `net.Dialer.DialContext`.
(fn DialContextFunc)
| 521 | // WithDialContextFunc allows you to override the func gets used for the dialing. |
| 522 | // The default is `net.Dialer.DialContext`. |
| 523 | func WithDialContextFunc(fn DialContextFunc) HTTPClientOption { |
| 524 | return httpClientOptionFunc(func(opts *httpClientOptions) { |
| 525 | opts.dialContextFunc = fn |
| 526 | }) |
| 527 | } |
| 528 | |
| 529 | // WithNewTLSConfigFunc allows you to override the func that creates the TLS config |
| 530 | // from the prometheus http config. |
searching dependent graphs…