Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsumerElementKey = micro.ElementKey("PulsarConsumerComponent")
ConsumerElementKey pulsar message queue consumer module
View Source
var ProducerElementKey = micro.ElementKey("PulsarProducerComponent")
ProducerElementKey pulsar message queue producer module
Functions ¶
Types ¶
type Config ¶
type Config struct { Enable bool `toml:"enable"` URL string `toml:"url"` Topic string `toml:"topic"` }
Config .
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer pulsar consumer client
func NewConsumer ¶
NewConsumer . url pulsar://localhost:6600,localhost:6650 topic topic
func (*Consumer) ReceiverChannel ¶
ReceiverChannel receive data within the channel
type ConsumerComponent ¶
type ConsumerComponent struct { micro.EmptyComponent // contains filtered or unexported fields }
ConsumerComponent pulsar consumer module
func (*ConsumerComponent) Init ¶
func (c *ConsumerComponent) Init(server *micro.Server) error
Init the component
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer pulsar producer
func NewProducer ¶
NewProducer . url pulsar://localhost:6600,localhost:6650 topic topic
type ProducerComponent ¶
type ProducerComponent struct { micro.EmptyComponent // contains filtered or unexported fields }
ProducerComponent pulsar producer module
func (*ProducerComponent) Init ¶
func (c *ProducerComponent) Init(server *micro.Server) error
Init the component
Click to show internal directories.
Click to hide internal directories.