pulsar

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPulsar

func NewPulsar(l logger.Logger) pubsub.PubSub

Types

type Pulsar

type Pulsar struct {
	// contains filtered or unexported fields
}

func (*Pulsar) Close added in v1.0.0

func (p *Pulsar) Close() error

func (*Pulsar) Features added in v1.0.0

func (p *Pulsar) Features() []pubsub.Feature

func (*Pulsar) HandleMessage

func (p *Pulsar) HandleMessage(m pulsar.ConsumerMessage, topic string, handler func(msg *pubsub.NewMessage) error)

func (*Pulsar) Init

func (p *Pulsar) Init(metadata pubsub.Metadata) error

func (*Pulsar) ListenMessage

func (p *Pulsar) ListenMessage(msgs pulsar.Consumer, topic string, handler func(msg *pubsub.NewMessage) error)

func (*Pulsar) Publish

func (p *Pulsar) Publish(req *pubsub.PublishRequest) error

func (*Pulsar) Subscribe

func (p *Pulsar) Subscribe(req pubsub.SubscribeRequest, handler func(msg *pubsub.NewMessage) error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL