InstrumentedOAuth2Config extends OAuth2Config with a `Do` method that allows external oauth related calls to be instrumented. This is to support "ValidateToken" which is not an oauth2 specified method. These calls still count against the api rate limit, and should be instrumented.
| 47 | // "ValidateToken" which is not an oauth2 specified method. |
| 48 | // These calls still count against the api rate limit, and should be instrumented. |
| 49 | type InstrumentedOAuth2Config interface { |
| 50 | OAuth2Config |
| 51 | |
| 52 | // Do is provided as a convenience method to make a request with the oauth2 client. |
| 53 | // It mirrors `http.Client.Do`. |
| 54 | Do(ctx context.Context, source Oauth2Source, req *http.Request) (*http.Response, error) |
| 55 | } |
| 56 | |
| 57 | var _ OAuth2Config = (*Config)(nil) |
| 58 |
no outgoing calls
no test coverage detected