Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskQueue ¶
type TaskQueue struct {
// contains filtered or unexported fields
}
TaskQueue is rate limiting queue for task
func NewTaskQueue ¶
NewTaskQueue creates a queue maxRetries limit retry number, no limit if maxRetries=0 1s, 2s, 4s, 8s, 16s, 32s, 60s, 60s, 60s, ...
func (*TaskQueue) AddRateLimited ¶
AddRateLimited a task
func (*TaskQueue) NumRequeues ¶
NumRequeues get number of task retried
Click to show internal directories.
Click to hide internal directories.