Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRedisNil = redis.Nil
Functions ¶
This section is empty.
Types ¶
type ClientCertConfig ¶
type ClientCertConfig struct { CertFile string `json:"cert_file" yaml:"cert_file"` KeyFile string `json:"key_file" yaml:"key_file"` }
func (*ClientCertConfig) Load ¶
func (c *ClientCertConfig) Load() (tls.Certificate, error)
type Config ¶
type Config struct { Address string `json:"address"` Password string `json:"password"` Database int `json:"database"` Mode Mode `json:"mode"` TLS *TLSConfig `json:"tls"` }
func (Config) ValidateConfigFields ¶
type TLSConfig ¶
type TLSConfig struct { Enabled bool `json:"enabled" yaml:"enabled"` RootCAsFile string `json:"root_cas_file" yaml:"root_cas_file"` InsecureSkipVerify bool `json:"skip_cert_verify" yaml:"skip_cert_verify"` ClientCertificates ClientCertConfig `json:"client_certs" yaml:"client_certs"` EnableRenegotiation bool `json:"enable_renegotiation" yaml:"enable_renegotiation"` }
Click to show internal directories.
Click to hide internal directories.