grpcutils

package
v2.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSecureDialOption

func ClientSecureDialOption(cert, key, ca, name string) (grpc.DialOption, error)

ClientSecureDialOption returns the gRPC dial option to use for the given client connection. It is either using TLS, or Insecure if nothing is set.

func TLSClientConfig

func TLSClientConfig(cert, key, ca, name string) (*tls.Config, error)

TLSClientConfig returns the TLS config to use for a client to connect to a server with the provided parameters.

func TLSServerConfig

func TLSServerConfig(cert, key, ca string) (*tls.Config, error)

TLSServerConfig returns the TLS config to use for a server to accept client connections.

Types

This section is empty.

Jump to

Keyboard shortcuts

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