This commit is contained in:
sujit
2025-09-24 16:01:07 +05:45
parent cb2869c98b
commit ca422e5fda
10 changed files with 826 additions and 708 deletions

View File

@@ -314,3 +314,39 @@ func WithConsumerTimeout(timeout time.Duration) Option {
opts.consumerTimeout = timeout
}
}
func WithAdminAddr(addr string) Option {
return func(opts *Options) {
opts.adminAddr = addr
}
}
func WithMetricsAddr(addr string) Option {
return func(opts *Options) {
opts.metricsAddr = addr
}
}
func WithSecurity(enabled bool) Option {
return func(opts *Options) {
opts.enableSecurity = enabled
}
}
func WithMonitoring(enabled bool) Option {
return func(opts *Options) {
opts.enableMonitoring = enabled
}
}
func WithUsername(username string) Option {
return func(opts *Options) {
opts.username = username
}
}
func WithPassword(password string) Option {
return func(opts *Options) {
opts.password = password
}
}