Documentation ¶
Overview ¶
Package creds implements some common functionality for loading TLS credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionalTLS ¶
func OptionalTLS(keyFile, certFile string, opts ...grpc.ServerOption) []grpc.ServerOption
OptionalTLS loads TLS certificates from the given files and attaches them as a gRPC ServerOption. If both filenames are empty then no credentials will be attached.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.