Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + var ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gRPC") + type AuthInfo interface + AuthType func() string + type PerRPCCredentials interface + GetRequestMetadata func(ctx context.Context, uri ...string) (map[string]string, error) + RequireTransportSecurity func() bool + type ProtocolInfo struct + ProtocolVersion string + SecurityProtocol string + SecurityVersion string + ServerName string + type TLSInfo struct + State tls.ConnectionState + func (t TLSInfo) AuthType() string + type TransportCredentials interface + ClientHandshake func(context.Context, string, net.Conn) (net.Conn, AuthInfo, error) + Clone func() TransportCredentials + Info func() ProtocolInfo + OverrideServerName func(string) error + ServerHandshake func(net.Conn) (net.Conn, AuthInfo, error) + func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials + func NewClientTLSFromFile(certFile, serverNameOverride string) (TransportCredentials, error) + func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials + func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) + func NewTLS(c *tls.Config) TransportCredentials