mirror of
https://github.com/oarkflow/mq.git
synced 2025-11-03 13:50:39 +08:00
feat: change package name
This commit is contained in:
10
options.go
10
options.go
@@ -43,12 +43,18 @@ func WithBrokerURL(url string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// Option to enable/disable TLS
|
||||
func WithTLS(enableTLS bool, certPath, keyPath, caPath string) Option {
|
||||
// WithTLS - Option to enable/disable TLS
|
||||
func WithTLS(enableTLS bool, certPath, keyPath string) Option {
|
||||
return func(o *Options) {
|
||||
o.useTLS = enableTLS
|
||||
o.tlsCertPath = certPath
|
||||
o.tlsKeyPath = keyPath
|
||||
}
|
||||
}
|
||||
|
||||
// WithCAPath - Option to enable/disable TLS
|
||||
func WithCAPath(caPath string) Option {
|
||||
return func(o *Options) {
|
||||
o.tlsCAPath = caPath
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user