Documentation
¶
Overview ¶
Package rocketmq Message queue adapter on RocketMQ.
Index ¶
- Constants
- type AgentManager
- type Consumer
- type Producer
- type Received
- type Remoter
- func (o *Remoter) Build(_ context.Context, _ *base.Task) (err error)
- func (o *Remoter) BuildById(_ context.Context, _ int) (err error)
- func (o *Remoter) Destroy(_ context.Context, _ *base.Task) (err error)
- func (o *Remoter) DestroyById(_ context.Context, _ int) (err error)
- func (o *Remoter) Processor() process.Processor
Constants ¶
View Source
const ( DefaultConsumerGroupName = "GID" DefaultProducerGroupName = "GmdProducers" DefaultConsumeSuspendDuration = time.Millisecond * 10 DefaultReconsumeTimes = 5 DefaultDelayTagPrefix = "GMD-DELAY-" DefaultDelayMessageTime = "GMD_DELAY_MESSAGE_TIME" DefaultDelayPublishCount = "GMD_DELAY_PUBLISH_COUNT" DefaultTopicMessageId = "GMD_TOPIC_MESSAGE_ID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentManager ¶
type AgentManager interface { // GenGroupName // return subscription group name. // // return "X-GID-1" GenGroupName(id int) string // GenTopicName // return topic name. // // return "X-TOPIC" GenTopicName(name string) string }
var (
Agent AgentManager
)
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer() *Producer
type Received ¶
type Received struct {
// contains filtered or unexported fields
}
func (*Received) Consume ¶
func (o *Received) Consume(ctx context.Context, ms ...*primitive.MessageExt) (consumer.ConsumeResult, error)
Consume main process for received message.
type Remoter ¶
type Remoter struct {
// contains filtered or unexported fields
}
Remoter struct for aliyun mns remoter.
func NewRemoter ¶
func NewRemoter() *Remoter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.