feat: change package name

This commit is contained in:
sujit
2024-10-01 12:28:12 +05:45
parent e2bbb05a3e
commit 52b5a58df3
5 changed files with 82 additions and 108 deletions

View File

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