github.com/volts-dev/volts@v0.0.0-20240120094013-5e9c65924106/broker/http/subscriber.go (about) 1 package http 2 3 import ( 4 "github.com/volts-dev/volts/broker" 5 "github.com/volts-dev/volts/registry" 6 ) 7 8 type ( 9 httpSubscriber struct { 10 opts *broker.SubscribeConfig 11 id string 12 topic string 13 fn broker.Handler 14 svc *registry.Service 15 hb *httpBroker 16 } 17 ) 18 19 func (self *httpSubscriber) Config() *broker.SubscribeConfig { 20 return nil 21 } 22 23 func (self *httpSubscriber) Topic() string { 24 return "" 25 } 26 27 func (self *httpSubscriber) Unsubscribe() error { 28 return nil 29 }