Documentation
¶
Overview ¶
Package network
@author: xwc1125
Package network ¶
@author: xwc1125
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TlsConfig ¶
type TlsConfig struct {
Mod TlsMod `json:"mod" mapstructure:"mod"` // 模式
KeyFile string `json:"key_file" mapstructure:"key_file"` // 服务私钥
CertFile string `json:"cert_file" mapstructure:"cert_file"` // 服务证书
CaRoots []string `json:"ca_roots" mapstructure:"ca_roots"` // ca根证书
CaRootPaths []string `json:"ca_root_paths" mapstructure:"ca_root_paths"` // ca根证书路径
ServerName string `json:"server_name" mapstructure:"server_name"` // 服务name
InsecureSkipVerify bool `json:"insecure_skip_verify" mapstructure:"insecure_skip_verify"` // 是否跳过非安全的校验
}
Click to show internal directories.
Click to hide internal directories.