WithAuthClient provides the HTTP client for the authorizer
(client *http.Client)
| 57 | |
| 58 | // WithAuthClient provides the HTTP client for the authorizer |
| 59 | func WithAuthClient(client *http.Client) AuthorizerOpt { |
| 60 | return func(opt *authorizerConfig) { |
| 61 | opt.client = client |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // WithAuthCreds provides a credential function to the authorizer |
| 66 | func WithAuthCreds(creds func(string) (string, string, error)) AuthorizerOpt { |
no outgoing calls
searching dependent graphs…