Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTLSConfig ¶
NewTLSConfig generates a TLS configuration used to authenticate on server with certificates. Parameters are the three pem files path we need to authenticate: client cert, client key and CA cert.
Types ¶
type Config ¶
type Config struct { Addrs []string `yaml:"address"` Username string `yaml:"username"` Password string `yaml:"password"` MaxRetries int MinRetryBackoff time.Duration MaxRetryBackoff time.Duration DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration PoolSize int `yaml:"poolSize"` MinIdleConns int `yaml:"minIdleConns"` MaxConnAge time.Duration `yaml:"minIdleAge"` PoolTimeout time.Duration `yaml:"poolTimeout"` IdleTimeout time.Duration `yaml:"idleTimeout"` IdleCheckFrequency time.Duration `yaml:"idleCheckFrequency"` TLS *TLS }
Config config
Click to show internal directories.
Click to hide internal directories.