ClientOptBasicAuth returns a function that sets the username and password setting on client options set
(username, password string)
| 162 | |
| 163 | // ClientOptBasicAuth returns a function that sets the username and password setting on client options set |
| 164 | func ClientOptBasicAuth(username, password string) ClientOption { |
| 165 | return func(client *Client) { |
| 166 | client.username = username |
| 167 | client.password = password |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | // ClientOptWriter returns a function that sets the writer setting on client options set |
| 172 | func ClientOptWriter(out io.Writer) ClientOption { |
no outgoing calls
searching dependent graphs…