grpc

package module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL