tlsconn

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: ISC Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSListeners

func TLSListeners(cfg TLSListenersConfig) ([]net.Listener, error)

TLSListeners creates a set of TLS listeners based on the specified config.

Types

type TLSListenersConfig

type TLSListenersConfig struct {
	// Addresses are the addresses, with the port appended.
	Addresses []string

	CertPath                  string
	KeyPath                   string
	CreateCertPairIfNotExists bool

	ClientCAPath                string
	ClientCertPath              string
	ClientKeyPath               string
	CreateClientCertIfNotExists bool

	Log slog.Logger
}

TLSListenersConfig is the config for a new set of TLS listeners.

Jump to

Keyboard shortcuts

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