WithAPIHTTPClient returns APIOption that allows providing http client.
(client *http.Client)
| 92 | |
| 93 | // WithAPIHTTPClient returns APIOption that allows providing http client. |
| 94 | func WithAPIHTTPClient(client *http.Client) APIOption { |
| 95 | return func(o *apiOpts) error { |
| 96 | o.client = client |
| 97 | return nil |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // WithAPIPath returns APIOption that allows providing path to send remote write requests to. |
| 102 | func WithAPIPath(path string) APIOption { |
no outgoing calls