Documentation ¶
Index ¶
- func NewPulsar(l logger.Logger) pubsub.PubSub
- type Pulsar
- func (p *Pulsar) Close() error
- func (p *Pulsar) Features() []pubsub.Feature
- func (p *Pulsar) HandleMessage(m pulsar.ConsumerMessage, topic string, ...)
- func (p *Pulsar) Init(metadata pubsub.Metadata) error
- func (p *Pulsar) ListenMessage(msgs pulsar.Consumer, topic string, handler func(msg *pubsub.NewMessage) error)
- func (p *Pulsar) Publish(req *pubsub.PublishRequest) error
- func (p *Pulsar) Subscribe(req pubsub.SubscribeRequest, handler func(msg *pubsub.NewMessage) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pulsar ¶
type Pulsar struct {
// contains filtered or unexported fields
}
func (*Pulsar) HandleMessage ¶
func (p *Pulsar) HandleMessage(m pulsar.ConsumerMessage, topic string, handler func(msg *pubsub.NewMessage) error)
func (*Pulsar) ListenMessage ¶
func (*Pulsar) Subscribe ¶
func (p *Pulsar) Subscribe(req pubsub.SubscribeRequest, handler func(msg *pubsub.NewMessage) error) error
Click to show internal directories.
Click to hide internal directories.