1
0
Fork 0
mirror of https://github.com/pomerium/pomerium.git synced 2025-09-24 05:47:05 +02:00
pomerium/pkg/storage/redis/option.go
2020-07-31 19:37:23 +07:00

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
}
}