Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // URL be used to connect to Redis. // Scheme is required. // There are two connection types: by tcp socket and by unix socket. // Tcp connection: // redis://<user>:<password>@<host>:<port>/<db_number> // Unix connection: // unix://<user>:<password>@</path/to/redis.sock>?db=<db_number> URL string Topic string // The maximum number of times the message is re-consumed. default 16 times. RetryMaxReconsume uint8 //The Duration of backoff to apply between retries. default 2^retry*100ms RetryBackoff func(retry uint8) time.Duration // Custom codec 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.