package local
import "google.golang.org/grpc/credentials/local"
Package local implements local transport credentials. Local credentials reports the security level based on the type of connetion. 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.
This package is EXPERIMENTAL.
Index ¶
Functions ¶
func NewCredentials ¶
func NewCredentials() credentials.TransportCredentials
NewCredentials returns a local credential implementing credentials.TransportCredentials.
Types ¶
type Info ¶
type Info struct { credentials.CommonAuthInfo }
Info contains the auth information for a local connection. It implements the AuthInfo interface.
func (Info) AuthType ¶
AuthType returns the type of Info as a string.
Source Files ¶
local.go
- Version
- v1.33.0-dev
- Published
- Aug 25, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 4 minutes ago –
Tools for package owners.