WithAPIVersion sets the version for a given Client.
(version string)
| 99 | |
| 100 | // WithAPIVersion sets the version for a given Client. |
| 101 | func WithAPIVersion(version string) ClientOption { |
| 102 | return func(c *Client) { |
| 103 | c.version = version |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | // WithHTTPRequester sets the HTTP requester for a given client, used mostly for testing. |
| 108 | func WithHTTPRequester(requester Requester) ClientOption { |
no outgoing calls