WithRoundTripper configures the repo client to use the specified http.RoundTripper.
(rt http.RoundTripper)
| 77 | |
| 78 | // WithRoundTripper configures the repo client to use the specified http.RoundTripper. |
| 79 | func WithRoundTripper(rt http.RoundTripper) Option { |
| 80 | return func(c *repoClientConfig) error { |
| 81 | c.rt = rt |
| 82 | return nil |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | type repoClientConfig struct { |
| 87 | rt http.RoundTripper |
no outgoing calls
no test coverage detected