WithPerRPCCredentials returns a DialOption which sets credentials and places auth state on each outbound RPC.
(creds credentials.PerRPCCredentials)
| 445 | // WithPerRPCCredentials returns a DialOption which sets credentials and places |
| 446 | // auth state on each outbound RPC. |
| 447 | func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption { |
| 448 | return newFuncDialOption(func(o *dialOptions) { |
| 449 | o.copts.PerRPCCredentials = append(o.copts.PerRPCCredentials, creds) |
| 450 | }) |
| 451 | } |
| 452 | |
| 453 | // WithCredentialsBundle returns a DialOption to set a credentials bundle for |
| 454 | // the ClientConn.WithCreds. This should not be used together with |