broker: resurrect Queue option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
7c115823a7
commit
b7338c12d7
@ -121,6 +121,12 @@ func SubscribeErrorHandler(h Handler) SubscribeOption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Queue(name string) SubscribeOption {
|
||||||
|
return func(o *SubscribeOptions) {
|
||||||
|
o.Group = name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// SubscribeGroup sets the name of the queue to share messages on
|
// SubscribeGroup sets the name of the queue to share messages on
|
||||||
func SubscribeGroup(name string) SubscribeOption {
|
func SubscribeGroup(name string) SubscribeOption {
|
||||||
return func(o *SubscribeOptions) {
|
return func(o *SubscribeOptions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user