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

Struct dualPerRPCCreds

credentials/google/google.go:159–162  ·  view source on GitHub ↗

dualPerRPCCreds implements credentials.PerRPCCredentials by embedding the fallback PerRPCCredentials and the ALTS one. It pickes one of them based on the channel type.

Source from the content-addressed store, hash-verified

157// fallback PerRPCCredentials and the ALTS one. It pickes one of them based on
158// the channel type.
159type dualPerRPCCreds struct {
160 perRPCCreds credentials.PerRPCCredentials
161 altsPerRPCCreds credentials.PerRPCCredentials
162}
163
164func (d *dualPerRPCCreds) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {
165 ri, ok := credentials.RequestInfoFromContext(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected