Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCiphers ¶
ParseCiphers returns a `[]uint16` by received `[]string` key that represents ciphers from crypto/tls. If some of ciphers in received list doesn't exists ParseCiphers returns nil with error
func ParseTLSVersion ¶
ParseTLSVersion returns a `uint16` by received version string key that represents tls version from crypto/tls. If version isn't supported ParseTLSVersion returns 0 with error
Types ¶
type ClientConfig ¶
type ClientConfig struct { TLSCA string `yaml:"tls_ca" toml:"tls_ca"` TLSCert string `yaml:"tls_cert" toml:"tls_cert"` TLSKey string `yaml:"tls_key" toml:"tls_key"` TLSKeyPwd string `yaml:"tls_key_pwd" toml:"tls_key_pwd"` InsecureSkipVerify bool `yaml:"tls_skip_verify" toml:"tls_skip_verify"` ServerName string `yaml:"tls_server_name" toml:"tls_server_name"` TLSMinVersion string `yaml:"tls_min_version" toml:"tls_min_version"` TLSMaxVersion string `yaml:"tls_max_version" toml:"tls_max_version"` }
ClientConfig represents the standard client TLS config.
Click to show internal directories.
Click to hide internal directories.