Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListenerConfig ¶
ListenerConfig defines the config of the listener, this mainly deals with configuring the TLSConfig
type ListenerOption ¶
type ListenerOption func(*ListenerConfig) error
ListenerOption is function used to mutate the config, it allows for convenience methods such as WithCertificateSource
func WithCertificateSource ¶
func WithCertificateSource(certificateSource servertls.CertificateSource) ListenerOption
WithCertificateSource specifies the certificate source for TLS, this also implicitly enables TLS for the listener when not nil
func WithTLSCipherSuites ¶
func WithTLSCipherSuites(suites []string) ListenerOption
WithTLSCipherSuites specifies the allowed ciper suites, when an empty/nil array is passed the go defaults are used
func WithTLSMinVersion ¶
func WithTLSMinVersion(version string) ListenerOption
WithTLSMinVersion specifies the minimum TLS version, when an empty string is passed the go defaults are used
Click to show internal directories.
Click to hide internal directories.