Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type TLSConfig ¶
type TLSConfig struct {
// Enabled is whether TLS is enabled.
Enabled bool `cfg:"enabled"`
// CertFile is the path to the client's TLS certificate.
// Should be use with KeyFile.
CertFile string `cfg:"cert_file"`
// KeyFile is the path to the client's TLS key.
// Should be use with CertFile.
KeyFile string `cfg:"key_file"`
// CAFile is the path to the CA certificate.
// If empty, the server's root CA set will be used.
CAFile string `cfg:"ca_file"`
}
TLSConfig contains options for TLS authentication.
Click to show internal directories.
Click to hide internal directories.