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.
Click to show internal directories.
Click to hide internal directories.