Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialOptionsFrom ¶
func DialOptionsFrom(params Params) ([]grpc.DialOption, error)
func TLSConfigFrom ¶
func TLSConfigFrom(clientTLSCert *tls.Certificate, serverName string, rootCAs ...*x509.Certificate) (*tls.Config, error)
TLSConfigFrom returns the appropriate config for TLS including the root CAs, certs for mutual TLS, and server host override.
Types ¶
type Params ¶
type Params struct { SslTargetNameOverride string // "ssl-target-name-override" Certificate *x509.Certificate // tlscacert ClientCertificate *tls.Certificate // for mutual tls KeepAliveParams *keepalive.ClientParameters WaitForReady bool }
Click to show internal directories.
Click to hide internal directories.