Versions in this module Expand all Collapse all v1 v1.0.1-GA Aug 19, 2016 v1.0.0 Jul 11, 2016 Changes in this version + 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 + type TLSInfo struct + State tls.ConnectionState + func (t TLSInfo) AuthType() string + type TransportCredentials interface + ClientHandshake func(addr string, rawConn net.Conn, timeout time.Duration) (net.Conn, AuthInfo, error) + Info func() ProtocolInfo + ServerHandshake func(rawConn net.Conn) (net.Conn, AuthInfo, error) + func NewClientTLSFromCert(cp *x509.CertPool, serverName string) TransportCredentials + func NewClientTLSFromFile(certFile, serverName string) (TransportCredentials, error) + func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials + func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) + func NewTLS(c *tls.Config) TransportCredentials