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