1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-23 20:32:32 +02:00
2020-12-26 15:32:45 +00:00

25 lines
400 B
Go

package stomp
import (
"github.com/go-stomp/stomp"
"github.com/micro/go-micro/v2/broker"
)
type subscriber struct {
opts broker.SubscribeOptions
topic string
sub *stomp.Subscription
}
func (s *subscriber) Options() broker.SubscribeOptions {
return s.opts
}
func (s *subscriber) Topic() string {
return s.topic
}
func (s *subscriber) Unsubscribe() error {
return s.sub.Unsubscribe()
}