MCPcopy
hub / github.com/grpc/grpc-go / TokenSource

Struct TokenSource

credentials/oauth/oauth.go:36–38  ·  view source on GitHub ↗

TokenSource supplies PerRPCCredentials from an oauth2.TokenSource.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected