local
v1.85.0
google.golang.org/grpc/credentials/local
Documentation
pkg.go.dev ↗Package local implements local transport credentials. Local credentials reports the security level based on the type of connection. If the connection is local TCP, NoSecurity will be reported, and if the connection is UDS, PrivacyAndIntegrity will be reported. If local credentials is not used in local connections (local TCP or UDS), it will fail.
Experimental
Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.
Functions
NewCredentials
func NewCredentials() credentials.TransportCredentials
NewCredentials returns a local credential implementing credentials.TransportCredentials.