Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSConfig ¶
type TLSConfig struct { // Enable TLS Enabled bool // Path to the CA cert. For a client this verifies the server certificate. CAFile string // Path to the TLS cert to use for TLS required connections. (optional) CertFile string // Path to the TLS key to use for TLS required connections. (optional) KeyFile string // InsecureSkipVerify will enable TLS but not verify the certificate InsecureSkipVerify bool // MinVersion sets the minimum TLS version that is acceptable. // If not set, TLS 1.2 will be used. (optional) MinVersion string // MaxVersion sets the maximum TLS version that is acceptable. // If not set, refer to crypto/tls for defaults. (optional) MaxVersion string }
TLSConfig is the interface used to configure a tcp client or server from a `Config`
Click to show internal directories.
Click to hide internal directories.