NewCredentials returns a credentials which disables transport security. Note that using this credentials with per-RPC credentials which require transport security is incompatible and will cause RPCs to fail.
()
| 32 | // Note that using this credentials with per-RPC credentials which require |
| 33 | // transport security is incompatible and will cause RPCs to fail. |
| 34 | func NewCredentials() credentials.TransportCredentials { |
| 35 | return insecureTC{} |
| 36 | } |
| 37 | |
| 38 | // insecureTC implements the insecure transport credentials. The handshake |
| 39 | // methods simply return the passed in net.Conn and set the security level to |
no outgoing calls