WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct.
(val string)
| 61 | |
| 62 | // WithProxyURL is a function that returns an Option, which sets the proxyURL field of the config struct. |
| 63 | func WithProxyURL(val string) Option { |
| 64 | return optionFunc(func(c *config) { |
| 65 | c.proxyURL = val |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | // WithSocksURL is a function that returns an Option, which sets the socksURL field of the config struct. |
| 70 | func WithSocksURL(val string) Option { |
no test coverage detected