Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2016 Changes in this version + func NewContext(ctx context.Context, authInfo AuthInfo) context.Context + type AuthInfo interface + AuthType func() string + func FromContext(ctx context.Context) (authInfo AuthInfo, ok bool) + type Credentials 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 TransportAuthenticator 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) TransportAuthenticator + func NewClientTLSFromFile(certFile, serverName string) (TransportAuthenticator, error) + func NewServerTLSFromCert(cert *tls.Certificate) TransportAuthenticator + func NewServerTLSFromFile(certFile, keyFile string) (TransportAuthenticator, error) + func NewTLS(c *tls.Config) TransportAuthenticator