Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
type Consumer interface { rocketmq.PushConsumer }
Consumer defines mq push consumer
func NewConsumer ¶
func NewConsumer(cfg *ConsumerConfig) (Consumer, error)
type ConsumerConfig ¶
type ConsumerConfig struct { Addr []string Subscriber Subscriber Concurrence int }
type Producer ¶
type Producer interface { rocketmq.Producer }
Producer defines mq message producer
func NewProducer ¶
func NewProducer(cfg *ProducerConfig) (Producer, error)
type ProducerConfig ¶
type SubscribeCallback ¶
type SubscribeCallback func(context.Context, ...*primitive.MessageExt) (consumer.ConsumeResult, error)
type Subscriber ¶
type Subscriber interface { Group() string Topic() string Consume(context.Context, ...*primitive.MessageExt) (consumer.ConsumeResult, error) }
Click to show internal directories.
Click to hide internal directories.