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 Username string Password string MaxRetries int MinRetryBackoff time.Duration MaxRetryBackoff time.Duration DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration PoolSize int MinIdleConns int MaxConnAge time.Duration PoolTimeout time.Duration IdleTimeout time.Duration IdleCheckFrequency time.Duration TLS *TLS }
Config config
Click to show internal directories.
Click to hide internal directories.