Support setting subscriber queue name
This commit is contained in:
@@ -37,6 +37,7 @@ type HandlerOptions struct {
|
||||
}
|
||||
|
||||
type SubscriberOptions struct {
|
||||
Queue string
|
||||
Internal bool
|
||||
}
|
||||
|
||||
@@ -56,3 +57,10 @@ func InternalSubscriber(b bool) SubscriberOption {
|
||||
o.Internal = b
|
||||
}
|
||||
}
|
||||
|
||||
// Shared queue name distributed messages across subscribers
|
||||
func SubscriberQueue(n string) SubscriberOption {
|
||||
return func(o *SubscriberOptions) {
|
||||
o.Queue = n
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user