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

Struct serviceAccount

credentials/oauth/oauth.go:153–157  ·  view source on GitHub ↗

serviceAccount represents PerRPCCredentials via JWT signing key.

Source from the content-addressed store, hash-verified

151
152// serviceAccount represents PerRPCCredentials via JWT signing key.
153type serviceAccount struct {
154 mu sync.Mutex
155 config *jwt.Config
156 t *oauth2.Token
157}
158
159func (s *serviceAccount) GetRequestMetadata(ctx context.Context, _ ...string) (map[string]string, error) {
160 s.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected