mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 11:56:02 +02:00
13 lines
244 B
Go
13 lines
244 B
Go
package redis
|
|
|
|
import "crypto/tls"
|
|
|
|
// Option customizes a DB.
|
|
type Option func(*DB)
|
|
|
|
// WithTLSConfig sets the tls.Config which DB uses.
|
|
func WithTLSConfig(tlsConfig *tls.Config) Option {
|
|
return func(db *DB) {
|
|
db.tlsConfig = tlsConfig
|
|
}
|
|
}
|