Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SSLCA string `toml:"ssl-ca" json:"ssl-ca"` SSLCert string `toml:"ssl-cert" json:"ssl-cert"` SSLKey string `toml:"ssl-key" json:"ssl-key"` CertAllowedCN []string `toml:"cert-allowed-cn" json:"cert-allowed-cn"` }
Config is security config
func (*Config) ToTLSConfig ¶
ToTLSConfig generates tls's config based on security section of the config.
func (*Config) ToTiDBSecurityConfig ¶
ToTiDBSecurityConfig generates tidb security config
Click to show internal directories.
Click to hide internal directories.