Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Hosts []string Topic string ProducerGroupName string ConsumerGroupName string Order bool BroadCasting bool // default processId, warning: using defaults can be problematic when docker is deployed InstanceName string // Strategy Algorithm for message allocating between consumers. reference: https://github.com/apache/rocketmq-client-go/blob/master/consumer/strategy.go AllocateStrategy func(string, string, []*primitive.MessageQueue, []string) []*primitive.MessageQueue // The maximum number of times the message is re-consumed. default 16 times. RetryMaxReconsume uint8 // The Duration of backoff to apply between retries. //Backoff time.Duration Codec codec.Codec // Define the concurrency number of worker processes, default runtime.NumCPU()*2 //Concurrency int // A Logger represents an active logging object that generates lines of output to an io.Writer Logger log.ILogger }
Click to show internal directories.
Click to hide internal directories.