TokenSource supplies PerRPCCredentials from an oauth2.TokenSource.
| 34 | |
| 35 | // TokenSource supplies PerRPCCredentials from an oauth2.TokenSource. |
| 36 | type TokenSource struct { |
| 37 | oauth2.TokenSource |
| 38 | } |
| 39 | |
| 40 | // GetRequestMetadata gets the request metadata as a map from a TokenSource. |
| 41 | func (ts TokenSource) GetRequestMetadata(ctx context.Context, _ ...string) (map[string]string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected