grpc: Index | Files

package local

import ""

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.


Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.


Package Files


func NewCredentials Uses

func NewCredentials() credentials.TransportCredentials

NewCredentials returns a local credential implementing credentials.TransportCredentials.

type Info Uses

type Info struct {

Info contains the auth information for a local connection. It implements the AuthInfo interface.

func (Info) AuthType Uses

func (Info) AuthType() string

AuthType returns the type of Info as a string.

Package local imports 5 packages (graph). Updated 2020-10-04. Refresh now. Tools for package owners.