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

Function NewCredentials

credentials/insecure/insecure.go:34–36  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

32// Note that using this credentials with per-RPC credentials which require
33// transport security is incompatible and will cause RPCs to fail.
34func 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

Calls

no outgoing calls