Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsumerElementKey = micro.ElementKey("PulsarConsumerComponent")
ConsumerElementKey pulsar消息队列消费者模块
View Source
var ProducerElementKey = micro.ElementKey("PulsarProducerComponent")
ProducerElementKey pulsar消息队列生产者模块
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消费者客户端
func NewConsumer ¶
NewConsumer . url pulsar://localhost:6600,localhost:6650 topic 主题
func (*Consumer) ReceiverChannel ¶
ReceiverChannel 接收通道内数据
type ConsumerComponent ¶
type ConsumerComponent struct { micro.EmptyComponent // contains filtered or unexported fields }
ConsumerComponent pulsar消费者模块
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 生产者客户端
func NewProducer ¶
NewProducer . url pulsar://localhost:6600,localhost:6650 topic 主题
type ProducerComponent ¶
type ProducerComponent struct { micro.EmptyComponent // contains filtered or unexported fields }
ProducerComponent pulsar生产者模块
func (*ProducerComponent) Init ¶
func (c *ProducerComponent) Init(server *micro.Server) error
Init the component
Click to show internal directories.
Click to hide internal directories.