SYMBOL INDEX (1351 symbols across 79 files) FILE: aggregator.go type aggregator (line 18) | type aggregator struct method shutdown (line 84) | func (a *aggregator) shutdown() { method start (line 93) | func (a *aggregator) start(wg *sync.WaitGroup) { method exec (line 119) | func (a *aggregator) exec(t time.Time) { method aggregate (line 130) | func (a *aggregator) aggregate(t time.Time) { type aggregatorParams (line 45) | type aggregatorParams struct constant maxConcurrentAggregationChecks (line 57) | maxConcurrentAggregationChecks = 3 constant defaultAggregationCheckInterval (line 61) | defaultAggregationCheckInterval = 7 * time.Second function newAggregator (line 64) | func newAggregator(params aggregatorParams) *aggregator { FILE: aggregator_test.go function TestAggregator (line 18) | func TestAggregator(t *testing.T) { FILE: asynq.go type Task (line 23) | type Task struct method Type (line 40) | func (t *Task) Type() string { return t.typename } method Payload (line 41) | func (t *Task) Payload() []byte { return t.payload } method Headers (line 42) | func (t *Task) Headers() map[string]string { return t.headers } method ResultWriter (line 48) | func (t *Task) ResultWriter() *ResultWriter { return t.w } function NewTask (line 52) | func NewTask(typename string, payload []byte, opts ...Option) *Task { function NewTaskWithHeaders (line 66) | func NewTaskWithHeaders(typename string, payload []byte, headers map[str... function newTask (line 76) | func newTask(typename string, payload []byte, w *ResultWriter) *Task { type TaskInfo (line 86) | type TaskInfo struct function fromUnixTimeOrZero (line 159) | func fromUnixTimeOrZero(t int64) time.Time { function newTaskInfo (line 166) | func newTaskInfo(msg *base.TaskMessage, state base.TaskState, nextProces... type TaskState (line 208) | type TaskState method String (line 233) | func (s TaskState) String() string { constant TaskStateActive (line 212) | TaskStateActive TaskState = iota + 1 constant TaskStatePending (line 215) | TaskStatePending constant TaskStateScheduled (line 218) | TaskStateScheduled constant TaskStateRetry (line 221) | TaskStateRetry constant TaskStateArchived (line 224) | TaskStateArchived constant TaskStateCompleted (line 227) | TaskStateCompleted constant TaskStateAggregating (line 230) | TaskStateAggregating type RedisConnOpt (line 260) | type RedisConnOpt interface type RedisClientOpt (line 268) | type RedisClientOpt struct method MakeRedisClient (line 317) | func (opt RedisClientOpt) MakeRedisClient() interface{} { type RedisFailoverClientOpt (line 335) | type RedisFailoverClientOpt struct method MakeRedisClient (line 391) | func (opt RedisFailoverClientOpt) MakeRedisClient() interface{} { type RedisClusterClientOpt (line 410) | type RedisClusterClientOpt struct method MakeRedisClient (line 452) | func (opt RedisClusterClientOpt) MakeRedisClient() interface{} { function ParseRedisURI (line 475) | func ParseRedisURI(uri string) (RedisConnOpt, error) { function parseRedisURI (line 492) | func parseRedisURI(u *url.URL) (RedisConnOpt, error) { function parseRedisSocketURI (line 524) | func parseRedisSocketURI(u *url.URL) (RedisConnOpt, error) { function parseRedisSentinelURI (line 545) | func parseRedisSentinelURI(u *url.URL) (RedisConnOpt, error) { type ResultWriter (line 557) | type ResultWriter struct method Write (line 565) | func (w *ResultWriter) Write(data []byte) (n int, err error) { method TaskID (line 575) | func (w *ResultWriter) TaskID() string { FILE: asynq_test.go function init (line 38) | func init() { function setup (line 49) | func setup(tb testing.TB) (r redis.UniversalClient) { function getRedisConnOpt (line 70) | func getRedisConnOpt(tb testing.TB) RedisConnOpt { function TestParseRedisURI (line 95) | func TestParseRedisURI(t *testing.T) { function TestParseRedisURIErrors (line 166) | func TestParseRedisURIErrors(t *testing.T) { FILE: benchmark_test.go function makeTask (line 19) | func makeTask(n int) *Task { function BenchmarkEndToEndSimple (line 28) | func BenchmarkEndToEndSimple(b *testing.B) { function BenchmarkEndToEnd (line 68) | func BenchmarkEndToEnd(b *testing.B) { function BenchmarkEndToEndMultipleQueues (line 130) | func BenchmarkEndToEndMultipleQueues(b *testing.B) { function BenchmarkClientWhileServerRunning (line 188) | func BenchmarkClientWhileServerRunning(b *testing.B) { FILE: client.go type Client (line 26) | type Client struct method Close (line 320) | func (c *Client) Close() error { method Enqueue (line 339) | func (c *Client) Enqueue(task *Task, opts ...Option) (*TaskInfo, error) { method EnqueueContext (line 355) | func (c *Client) EnqueueContext(ctx context.Context, task *Task, opts ... method Ping (line 424) | func (c *Client) Ping() error { method enqueue (line 428) | func (c *Client) enqueue(ctx context.Context, msg *base.TaskMessage, u... method schedule (line 435) | func (c *Client) schedule(ctx context.Context, msg *base.TaskMessage, ... method addToGroup (line 443) | func (c *Client) addToGroup(ctx context.Context, msg *base.TaskMessage... function NewClient (line 34) | func NewClient(r RedisConnOpt) *Client { function NewClientFromRedisClient (line 46) | func NewClientFromRedisClient(c redis.UniversalClient) *Client { type OptionType (line 50) | type OptionType constant MaxRetryOpt (line 53) | MaxRetryOpt OptionType = iota constant QueueOpt (line 54) | QueueOpt constant TimeoutOpt (line 55) | TimeoutOpt constant DeadlineOpt (line 56) | DeadlineOpt constant UniqueOpt (line 57) | UniqueOpt constant ProcessAtOpt (line 58) | ProcessAtOpt constant ProcessInOpt (line 59) | ProcessInOpt constant TaskIDOpt (line 60) | TaskIDOpt constant RetentionOpt (line 61) | RetentionOpt constant GroupOpt (line 62) | GroupOpt type Option (line 66) | type Option interface type retryOption (line 79) | type retryOption method String (line 102) | func (n retryOption) String() string { return fmt.Sprintf("MaxRetr... method Type (line 103) | func (n retryOption) Type() OptionType { return MaxRetryOpt } method Value (line 104) | func (n retryOption) Value() interface{} { return int(n) } type queueOption (line 80) | type queueOption method String (line 111) | func (name queueOption) String() string { return fmt.Sprintf("Queu... method Type (line 112) | func (name queueOption) Type() OptionType { return QueueOpt } method Value (line 113) | func (name queueOption) Value() interface{} { return string(name) } type taskIDOption (line 81) | type taskIDOption method String (line 120) | func (id taskIDOption) String() string { return fmt.Sprintf("TaskI... method Type (line 121) | func (id taskIDOption) Type() OptionType { return TaskIDOpt } method Value (line 122) | func (id taskIDOption) Value() interface{} { return string(id) } type timeoutOption (line 82) | type timeoutOption method String (line 136) | func (d timeoutOption) String() string { return fmt.Sprintf("Timeo... method Type (line 137) | func (d timeoutOption) Type() OptionType { return TimeoutOpt } method Value (line 138) | func (d timeoutOption) Value() interface{} { return time.Duration(d) } type deadlineOption (line 83) | type deadlineOption method String (line 150) | func (t deadlineOption) String() string { method Type (line 153) | func (t deadlineOption) Type() OptionType { return DeadlineOpt } method Value (line 154) | func (t deadlineOption) Value() interface{} { return time.Time(t) } type uniqueOption (line 84) | type uniqueOption method String (line 171) | func (ttl uniqueOption) String() string { return fmt.Sprintf("Uniq... method Type (line 172) | func (ttl uniqueOption) Type() OptionType { return UniqueOpt } method Value (line 173) | func (ttl uniqueOption) Value() interface{} { return time.Duration(ttl) } type processAtOption (line 85) | type processAtOption method String (line 182) | func (t processAtOption) String() string { method Type (line 185) | func (t processAtOption) Type() OptionType { return ProcessAtOpt } method Value (line 186) | func (t processAtOption) Value() interface{} { return time.Time(t) } type processInOption (line 86) | type processInOption method String (line 195) | func (d processInOption) String() string { return fmt.Sprintf("Pro... method Type (line 196) | func (d processInOption) Type() OptionType { return ProcessInOpt } method Value (line 197) | func (d processInOption) Value() interface{} { return time.Duration(d) } type retentionOption (line 87) | type retentionOption method String (line 206) | func (ttl retentionOption) String() string { return fmt.Sprintf("R... method Type (line 207) | func (ttl retentionOption) Type() OptionType { return RetentionOpt } method Value (line 208) | func (ttl retentionOption) Value() interface{} { return time.Duration(... type groupOption (line 88) | type groupOption method String (line 216) | func (name groupOption) String() string { return fmt.Sprintf("Grou... method Type (line 217) | func (name groupOption) Type() OptionType { return GroupOpt } method Value (line 218) | func (name groupOption) Value() interface{} { return string(name) } function MaxRetry (line 95) | func MaxRetry(n int) Option { function Queue (line 107) | func Queue(name string) Option { function TaskID (line 116) | func TaskID(id string) Option { function Timeout (line 132) | func Timeout(d time.Duration) Option { function Deadline (line 146) | func Deadline(t time.Time) Option { function Unique (line 167) | func Unique(ttl time.Duration) Option { function ProcessAt (line 178) | func ProcessAt(t time.Time) Option { function ProcessIn (line 191) | func ProcessIn(d time.Duration) Option { function Retention (line 202) | func Retention(d time.Duration) Option { function Group (line 212) | func Group(name string) Option { type option (line 230) | type option struct function composeOptions (line 246) | func composeOptions(opts ...Option) (option, error) { function isBlank (line 301) | func isBlank(s string) bool { constant defaultMaxRetry (line 307) | defaultMaxRetry = 25 constant defaultTimeout (line 310) | defaultTimeout = 30 * time.Minute FILE: client_test.go function TestClientEnqueueWithProcessAtOption (line 20) | func TestClientEnqueueWithProcessAtOption(t *testing.T) { function testClientEnqueue (line 147) | func testClientEnqueue(t *testing.T, client *Client, r redis.UniversalCl... function TestClientEnqueue (line 478) | func TestClientEnqueue(t *testing.T) { function TestClientFromRedisClientEnqueue (line 485) | func TestClientFromRedisClientEnqueue(t *testing.T) { function TestClientEnqueueWithGroupOption (line 496) | func TestClientEnqueueWithGroupOption(t *testing.T) { function TestClientEnqueueWithTaskIDOption (line 648) | func TestClientEnqueueWithTaskIDOption(t *testing.T) { function TestClientEnqueueWithConflictingTaskID (line 725) | func TestClientEnqueueWithConflictingTaskID(t *testing.T) { function TestClientEnqueueWithProcessInOption (line 742) | func TestClientEnqueueWithProcessInOption(t *testing.T) { function TestClientEnqueueError (line 865) | func TestClientEnqueueError(t *testing.T) { function TestClientWithDefaultOptions (line 926) | func TestClientWithDefaultOptions(t *testing.T) { function TestClientEnqueueUnique (line 1060) | func TestClientEnqueueUnique(t *testing.T) { function TestClientEnqueueUniqueWithProcessInOption (line 1103) | func TestClientEnqueueUniqueWithProcessInOption(t *testing.T) { function TestClientEnqueueUniqueWithProcessAtOption (line 1149) | func TestClientEnqueueUniqueWithProcessAtOption(t *testing.T) { function TestClientEnqueueWithHeaders (line 1195) | func TestClientEnqueueWithHeaders(t *testing.T) { function TestClientEnqueueWithHeadersScheduled (line 1371) | func TestClientEnqueueWithHeadersScheduled(t *testing.T) { function TestNewTaskWithHeaders (line 1457) | func TestNewTaskWithHeaders(t *testing.T) { function TestTaskHeadersMethod (line 1531) | func TestTaskHeadersMethod(t *testing.T) { function TestClientEnqueueWithHeadersAndGroup (line 1577) | func TestClientEnqueueWithHeadersAndGroup(t *testing.T) { FILE: context.go function GetTaskID (line 17) | func GetTaskID(ctx context.Context) (id string, ok bool) { function GetRetryCount (line 25) | func GetRetryCount(ctx context.Context) (n int, ok bool) { function GetMaxRetry (line 33) | func GetMaxRetry(ctx context.Context) (n int, ok bool) { function GetQueueName (line 40) | func GetQueueName(ctx context.Context) (queue string, ok bool) { FILE: example_test.go function ExampleServer_Run (line 19) | func ExampleServer_Run() { function ExampleServer_Shutdown (line 34) | func ExampleServer_Shutdown() { function ExampleServer_Stop (line 54) | func ExampleServer_Stop() { function ExampleScheduler (line 83) | func ExampleScheduler() { function ExampleParseRedisURI (line 102) | func ExampleParseRedisURI() { function ExampleResultWriter (line 118) | func ExampleResultWriter() { FILE: forwarder.go type forwarder (line 17) | type forwarder struct method shutdown (line 48) | func (f *forwarder) shutdown() { method start (line 55) | func (f *forwarder) start(wg *sync.WaitGroup) { method exec (line 73) | func (f *forwarder) exec() { type forwarderParams (line 31) | type forwarderParams struct function newForwarder (line 38) | func newForwarder(params forwarderParams) *forwarder { FILE: forwarder_test.go function TestForwarder (line 18) | func TestForwarder(t *testing.T) { FILE: healthcheck.go type healthchecker (line 17) | type healthchecker struct method shutdown (line 48) | func (hc *healthchecker) shutdown() { method start (line 58) | func (hc *healthchecker) start(wg *sync.WaitGroup) { type healthcheckerParams (line 31) | type healthcheckerParams struct function newHealthChecker (line 38) | func newHealthChecker(params healthcheckerParams) *healthchecker { FILE: healthcheck_test.go function TestHealthChecker (line 16) | func TestHealthChecker(t *testing.T) { function TestHealthCheckerWhenRedisDown (line 57) | func TestHealthCheckerWhenRedisDown(t *testing.T) { FILE: heartbeat.go type heartbeater (line 20) | type heartbeater struct method shutdown (line 92) | func (h *heartbeater) shutdown() { method start (line 110) | func (h *heartbeater) start(wg *sync.WaitGroup) { method beat (line 145) | func (h *heartbeater) beat() { type heartbeaterParams (line 53) | type heartbeaterParams struct function newHeartbeater (line 65) | func newHeartbeater(params heartbeaterParams) *heartbeater { type workerInfo (line 99) | type workerInfo struct FILE: heartbeat_test.go function TestHeartbeater (line 27) | func TestHeartbeater(t *testing.T) { function TestHeartbeaterWithRedisDown (line 315) | func TestHeartbeaterWithRedisDown(t *testing.T) { FILE: inspector.go type Inspector (line 21) | type Inspector struct method Close (line 49) | func (i *Inspector) Close() error { method Queues (line 57) | func (i *Inspector) Queues() ([]string, error) { method Groups (line 62) | func (i *Inspector) Groups(queue string) ([]*GroupInfo, error) { method GetQueueInfo (line 140) | func (i *Inspector) GetQueueInfo(queue string) (*QueueInfo, error) { method History (line 184) | func (i *Inspector) History(queue string, n int) ([]*DailyStats, error) { method DeleteQueue (line 225) | func (i *Inspector) DeleteQueue(queue string, force bool) error { method GetTaskInfo (line 240) | func (i *Inspector) GetTaskInfo(queue, id string) (*TaskInfo, error) { method ListPendingTasks (line 317) | func (i *Inspector) ListPendingTasks(queue string, opts ...ListOption)... method ListActiveTasks (line 345) | func (i *Inspector) ListActiveTasks(queue string, opts ...ListOption) ... method ListAggregatingTasks (line 385) | func (i *Inspector) ListAggregatingTasks(queue, group string, opts ...... method ListScheduledTasks (line 414) | func (i *Inspector) ListScheduledTasks(queue string, opts ...ListOptio... method ListRetryTasks (line 443) | func (i *Inspector) ListRetryTasks(queue string, opts ...ListOption) (... method ListArchivedTasks (line 472) | func (i *Inspector) ListArchivedTasks(queue string, opts ...ListOption... method ListCompletedTasks (line 501) | func (i *Inspector) ListCompletedTasks(queue string, opts ...ListOptio... method DeleteAllPendingTasks (line 528) | func (i *Inspector) DeleteAllPendingTasks(queue string) (int, error) { method DeleteAllScheduledTasks (line 538) | func (i *Inspector) DeleteAllScheduledTasks(queue string) (int, error) { method DeleteAllRetryTasks (line 548) | func (i *Inspector) DeleteAllRetryTasks(queue string) (int, error) { method DeleteAllArchivedTasks (line 558) | func (i *Inspector) DeleteAllArchivedTasks(queue string) (int, error) { method DeleteAllCompletedTasks (line 568) | func (i *Inspector) DeleteAllCompletedTasks(queue string) (int, error) { method DeleteAllAggregatingTasks (line 578) | func (i *Inspector) DeleteAllAggregatingTasks(queue, group string) (in... method UpdateTaskPayload (line 593) | func (i *Inspector) UpdateTaskPayload(queue, id string, payload []byte... method DeleteTask (line 617) | func (i *Inspector) DeleteTask(queue, id string) error { method RunAllScheduledTasks (line 636) | func (i *Inspector) RunAllScheduledTasks(queue string) (int, error) { method RunAllRetryTasks (line 646) | func (i *Inspector) RunAllRetryTasks(queue string) (int, error) { method RunAllArchivedTasks (line 656) | func (i *Inspector) RunAllArchivedTasks(queue string) (int, error) { method RunAllAggregatingTasks (line 666) | func (i *Inspector) RunAllAggregatingTasks(queue, group string) (int, ... method RunTask (line 681) | func (i *Inspector) RunTask(queue, id string) error { method ArchiveAllPendingTasks (line 699) | func (i *Inspector) ArchiveAllPendingTasks(queue string) (int, error) { method ArchiveAllScheduledTasks (line 709) | func (i *Inspector) ArchiveAllScheduledTasks(queue string) (int, error) { method ArchiveAllRetryTasks (line 719) | func (i *Inspector) ArchiveAllRetryTasks(queue string) (int, error) { method ArchiveAllAggregatingTasks (line 729) | func (i *Inspector) ArchiveAllAggregatingTasks(queue, group string) (i... method ArchiveTask (line 744) | func (i *Inspector) ArchiveTask(queue, id string) error { method CancelProcessing (line 764) | func (i *Inspector) CancelProcessing(id string) error { method PauseQueue (line 770) | func (i *Inspector) PauseQueue(queue string) error { method UnpauseQueue (line 779) | func (i *Inspector) UnpauseQueue(queue string) error { method Servers (line 787) | func (i *Inspector) Servers() ([]*ServerInfo, error) { method ClusterKeySlot (line 873) | func (i *Inspector) ClusterKeySlot(queue string) (int64, error) { method ClusterNodes (line 889) | func (i *Inspector) ClusterNodes(queue string) ([]*ClusterNode, error) { method SchedulerEntries (line 925) | func (i *Inspector) SchedulerEntries() ([]*SchedulerEntry, error) { method ListSchedulerEnqueueEvents (line 1038) | func (i *Inspector) ListSchedulerEnqueueEvents(entryID string, opts ..... function NewInspector (line 29) | func NewInspector(r RedisConnOpt) *Inspector { function NewInspectorFromRedisClient (line 41) | func NewInspectorFromRedisClient(c redis.UniversalClient) *Inspector { type GroupInfo (line 78) | type GroupInfo struct type QueueInfo (line 87) | type QueueInfo struct type DailyStats (line 171) | type DailyStats struct type ListOption (line 254) | type ListOption interface type pageSizeOpt (line 258) | type pageSizeOpt type pageNumOpt (line 259) | type pageNumOpt type listOption (line 262) | type listOption struct constant defaultPageSize (line 269) | defaultPageSize = 30 constant defaultPageNum (line 272) | defaultPageNum = 1 function composeListOptions (line 275) | func composeListOptions(opts ...ListOption) listOption { function PageSize (line 296) | func PageSize(n int) ListOption { function Page (line 307) | func Page(n int) ListOption { type ServerInfo (line 833) | type ServerInfo struct type WorkerInfo (line 857) | type WorkerInfo struct type ClusterNode (line 878) | type ClusterNode struct type SchedulerEntry (line 902) | type SchedulerEntry struct function parseOption (line 954) | func parseOption(s string) (Option, error) { function parseOptionFunc (line 1010) | func parseOptionFunc(s string) string { function parseOptionArg (line 1015) | func parseOptionArg(s string) string { type SchedulerEnqueueEvent (line 1027) | type SchedulerEnqueueEvent struct FILE: inspector_test.go function testInspectorQueues (line 25) | func testInspectorQueues(t *testing.T, inspector *Inspector, r redis.Uni... function TestInspectorQueues (line 53) | func TestInspectorQueues(t *testing.T) { function TestInspectorFromRedisClientQueues (line 60) | func TestInspectorFromRedisClientQueues(t *testing.T) { function TestInspectorDeleteQueue (line 68) | func TestInspectorDeleteQueue(t *testing.T) { function TestInspectorDeleteQueueErrorQueueNotEmpty (line 157) | func TestInspectorDeleteQueueErrorQueueNotEmpty(t *testing.T) { function TestInspectorDeleteQueueErrorQueueNotFound (line 213) | func TestInspectorDeleteQueueErrorQueueNotFound(t *testing.T) { function TestInspectorGetQueueInfo (line 269) | func TestInspectorGetQueueInfo(t *testing.T) { function TestInspectorHistory (line 424) | func TestInspectorHistory(t *testing.T) { function createPendingTask (line 479) | func createPendingTask(msg *base.TaskMessage) *TaskInfo { function TestInspectorGetTaskInfo (line 483) | func TestInspectorGetTaskInfo(t *testing.T) { function TestInspectorGetTaskInfoError (line 607) | func TestInspectorGetTaskInfoError(t *testing.T) { function TestInspectorListPendingTasks (line 687) | func TestInspectorListPendingTasks(t *testing.T) { function newOrphanedTaskInfo (line 759) | func newOrphanedTaskInfo(msg *base.TaskMessage) *TaskInfo { function TestInspectorListActiveTasks (line 765) | func TestInspectorListActiveTasks(t *testing.T) { function createScheduledTask (line 846) | func createScheduledTask(z base.Z) *TaskInfo { function TestInspectorListScheduledTasks (line 855) | func TestInspectorListScheduledTasks(t *testing.T) { function createRetryTask (line 916) | func createRetryTask(z base.Z) *TaskInfo { function TestInspectorListRetryTasks (line 925) | func TestInspectorListRetryTasks(t *testing.T) { function createArchivedTask (line 987) | func createArchivedTask(z base.Z) *TaskInfo { function TestInspectorListArchivedTasks (line 996) | func TestInspectorListArchivedTasks(t *testing.T) { function newCompletedTaskMessage (line 1057) | func newCompletedTaskMessage(typename, qname string, retention time.Dura... function createCompletedTask (line 1064) | func createCompletedTask(z base.Z) *TaskInfo { function TestInspectorListCompletedTasks (line 1073) | func TestInspectorListCompletedTasks(t *testing.T) { function TestInspectorListAggregatingTasks (line 1134) | func TestInspectorListAggregatingTasks(t *testing.T) { function createAggregatingTaskInfo (line 1230) | func createAggregatingTaskInfo(msg *base.TaskMessage) *TaskInfo { function TestInspectorListPagination (line 1234) | func TestInspectorListPagination(t *testing.T) { function TestInspectorListTasksQueueNotFoundError (line 1298) | func TestInspectorListTasksQueueNotFoundError(t *testing.T) { function TestInspectorDeleteAllPendingTasks (line 1341) | func TestInspectorDeleteAllPendingTasks(t *testing.T) { function TestInspectorDeleteAllScheduledTasks (line 1405) | func TestInspectorDeleteAllScheduledTasks(t *testing.T) { function TestInspectorDeleteAllRetryTasks (line 1471) | func TestInspectorDeleteAllRetryTasks(t *testing.T) { function TestInspectorDeleteAllArchivedTasks (line 1537) | func TestInspectorDeleteAllArchivedTasks(t *testing.T) { function TestInspectorDeleteAllCompletedTasks (line 1603) | func TestInspectorDeleteAllCompletedTasks(t *testing.T) { function TestInspectorArchiveAllPendingTasks (line 1669) | func TestInspectorArchiveAllPendingTasks(t *testing.T) { function TestInspectorArchiveAllScheduledTasks (line 1780) | func TestInspectorArchiveAllScheduledTasks(t *testing.T) { function TestInspectorArchiveAllRetryTasks (line 1910) | func TestInspectorArchiveAllRetryTasks(t *testing.T) { function TestInspectorRunAllScheduledTasks (line 2024) | func TestInspectorRunAllScheduledTasks(t *testing.T) { function TestInspectorRunAllRetryTasks (line 2141) | func TestInspectorRunAllRetryTasks(t *testing.T) { function TestInspectorRunAllArchivedTasks (line 2258) | func TestInspectorRunAllArchivedTasks(t *testing.T) { function TestInspectorUpdateTaskPayloadUpdatesScheduledTaskPayload (line 2372) | func TestInspectorUpdateTaskPayloadUpdatesScheduledTaskPayload(t *testin... function TestInspectorUpdateTaskPayloadError (line 2460) | func TestInspectorUpdateTaskPayloadError(t *testing.T) { function TestInspectorDeleteTaskDeletesPendingTask (line 2514) | func TestInspectorDeleteTaskDeletesPendingTask(t *testing.T) { function TestInspectorDeleteTaskDeletesScheduledTask (line 2574) | func TestInspectorDeleteTaskDeletesScheduledTask(t *testing.T) { function TestInspectorDeleteTaskDeletesRetryTask (line 2624) | func TestInspectorDeleteTaskDeletesRetryTask(t *testing.T) { function TestInspectorDeleteTaskDeletesArchivedTask (line 2674) | func TestInspectorDeleteTaskDeletesArchivedTask(t *testing.T) { function TestInspectorDeleteTaskError (line 2724) | func TestInspectorDeleteTaskError(t *testing.T) { function TestInspectorRunTaskRunsScheduledTask (line 2789) | func TestInspectorRunTaskRunsScheduledTask(t *testing.T) { function TestInspectorRunTaskRunsRetryTask (line 2859) | func TestInspectorRunTaskRunsRetryTask(t *testing.T) { function TestInspectorRunTaskRunsArchivedTask (line 2928) | func TestInspectorRunTaskRunsArchivedTask(t *testing.T) { function TestInspectorRunTaskError (line 3001) | func TestInspectorRunTaskError(t *testing.T) { function TestInspectorArchiveTaskArchivesPendingTask (line 3101) | func TestInspectorArchiveTaskArchivesPendingTask(t *testing.T) { function TestInspectorArchiveTaskArchivesScheduledTask (line 3192) | func TestInspectorArchiveTaskArchivesScheduledTask(t *testing.T) { function TestInspectorArchiveTaskArchivesRetryTask (line 3269) | func TestInspectorArchiveTaskArchivesRetryTask(t *testing.T) { function TestInspectorArchiveTaskError (line 3344) | func TestInspectorArchiveTaskError(t *testing.T) { function TestInspectorSchedulerEntries (line 3445) | func TestInspectorSchedulerEntries(t *testing.T) { function TestParseOption (line 3514) | func TestParseOption(t *testing.T) { function TestInspectorGroups (line 3583) | func TestInspectorGroups(t *testing.T) { FILE: internal/base/base.go constant Version (line 26) | Version = "0.26.0" constant DefaultQueueName (line 29) | DefaultQueueName = "default" constant AllServers (line 36) | AllServers = "asynq:servers" constant AllWorkers (line 37) | AllWorkers = "asynq:workers" constant AllSchedulers (line 38) | AllSchedulers = "asynq:schedulers" constant AllQueues (line 39) | AllQueues = "asynq:queues" constant CancelChannel (line 40) | CancelChannel = "asynq:cancel" type TaskState (line 44) | type TaskState method String (line 56) | func (s TaskState) String() string { constant TaskStateActive (line 47) | TaskStateActive TaskState = iota + 1 constant TaskStatePending (line 48) | TaskStatePending constant TaskStateScheduled (line 49) | TaskStateScheduled constant TaskStateRetry (line 50) | TaskStateRetry constant TaskStateArchived (line 51) | TaskStateArchived constant TaskStateCompleted (line 52) | TaskStateCompleted constant TaskStateAggregating (line 53) | TaskStateAggregating function TaskStateFromString (line 76) | func TaskStateFromString(s string) (TaskState, error) { function ValidateQueueName (line 98) | func ValidateQueueName(qname string) error { function QueueKeyPrefix (line 106) | func QueueKeyPrefix(qname string) string { function TaskKeyPrefix (line 111) | func TaskKeyPrefix(qname string) string { function TaskKey (line 116) | func TaskKey(qname, id string) string { function PendingKey (line 121) | func PendingKey(qname string) string { function ActiveKey (line 126) | func ActiveKey(qname string) string { function ScheduledKey (line 131) | func ScheduledKey(qname string) string { function RetryKey (line 136) | func RetryKey(qname string) string { function ArchivedKey (line 141) | func ArchivedKey(qname string) string { function LeaseKey (line 146) | func LeaseKey(qname string) string { function CompletedKey (line 150) | func CompletedKey(qname string) string { function PausedKey (line 155) | func PausedKey(qname string) string { function ProcessedTotalKey (line 160) | func ProcessedTotalKey(qname string) string { function FailedTotalKey (line 165) | func FailedTotalKey(qname string) string { function ProcessedKey (line 170) | func ProcessedKey(qname string, t time.Time) string { function FailedKey (line 175) | func FailedKey(qname string, t time.Time) string { function ServerInfoKey (line 180) | func ServerInfoKey(hostname string, pid int, serverID string) string { function WorkersKey (line 185) | func WorkersKey(hostname string, pid int, serverID string) string { function SchedulerEntriesKey (line 190) | func SchedulerEntriesKey(schedulerID string) string { function SchedulerHistoryKey (line 195) | func SchedulerHistoryKey(entryID string) string { function UniqueKey (line 200) | func UniqueKey(qname, tasktype string, payload []byte) string { function GroupKeyPrefix (line 209) | func GroupKeyPrefix(qname string) string { function GroupKey (line 214) | func GroupKey(qname, gkey string) string { function AggregationSetKey (line 219) | func AggregationSetKey(qname, gname, setID string) string { function AllGroups (line 224) | func AllGroups(qname string) string { function AllAggregationSets (line 230) | func AllAggregationSets(qname string) string { type TaskMessage (line 236) | type TaskMessage struct function EncodeMessage (line 303) | func EncodeMessage(msg *TaskMessage) ([]byte, error) { function DecodeMessage (line 327) | func DecodeMessage(data []byte) (*TaskMessage, error) { type TaskInfo (line 352) | type TaskInfo struct type Z (line 360) | type Z struct type ServerInfo (line 366) | type ServerInfo struct function EncodeServerInfo (line 379) | func EncodeServerInfo(info *ServerInfo) ([]byte, error) { function DecodeServerInfo (line 403) | func DecodeServerInfo(b []byte) (*ServerInfo, error) { type WorkerInfo (line 428) | type WorkerInfo struct function EncodeWorkerInfo (line 441) | func EncodeWorkerInfo(info *WorkerInfo) ([]byte, error) { function DecodeWorkerInfo (line 462) | func DecodeWorkerInfo(b []byte) (*WorkerInfo, error) { type SchedulerEntry (line 484) | type SchedulerEntry struct function EncodeSchedulerEntry (line 509) | func EncodeSchedulerEntry(entry *SchedulerEntry) ([]byte, error) { function DecodeSchedulerEntry (line 528) | func DecodeSchedulerEntry(b []byte) (*SchedulerEntry, error) { type SchedulerEnqueueEvent (line 548) | type SchedulerEnqueueEvent struct function EncodeSchedulerEnqueueEvent (line 558) | func EncodeSchedulerEnqueueEvent(event *SchedulerEnqueueEvent) ([]byte, ... function DecodeSchedulerEnqueueEvent (line 571) | func DecodeSchedulerEnqueueEvent(b []byte) (*SchedulerEnqueueEvent, erro... type Cancelations (line 586) | type Cancelations struct method Add (line 599) | func (c *Cancelations) Add(id string, fn context.CancelFunc) { method Delete (line 606) | func (c *Cancelations) Delete(id string) { method Get (line 613) | func (c *Cancelations) Get(id string) (fn context.CancelFunc, ok bool) { function NewCancelations (line 592) | func NewCancelations() *Cancelations { type Lease (line 622) | type Lease struct method Reset (line 642) | func (l *Lease) Reset(expirationTime time.Time) bool { method NotifyExpiration (line 654) | func (l *Lease) NotifyExpiration() bool { method closeCh (line 662) | func (l *Lease) closeCh() { method Done (line 667) | func (l *Lease) Done() <-chan struct{} { method Deadline (line 672) | func (l *Lease) Deadline() time.Time { method IsValid (line 680) | func (l *Lease) IsValid() bool { function NewLease (line 632) | func NewLease(expirationTime time.Time) *Lease { type Broker (line 690) | type Broker interface FILE: internal/base/base_test.go function TestTaskKey (line 22) | func TestTaskKey(t *testing.T) { function TestQueueKey (line 41) | func TestQueueKey(t *testing.T) { function TestActiveKey (line 58) | func TestActiveKey(t *testing.T) { function TestLeaseKey (line 75) | func TestLeaseKey(t *testing.T) { function TestScheduledKey (line 92) | func TestScheduledKey(t *testing.T) { function TestRetryKey (line 109) | func TestRetryKey(t *testing.T) { function TestArchivedKey (line 126) | func TestArchivedKey(t *testing.T) { function TestCompletedKey (line 143) | func TestCompletedKey(t *testing.T) { function TestPausedKey (line 160) | func TestPausedKey(t *testing.T) { function TestProcessedTotalKey (line 177) | func TestProcessedTotalKey(t *testing.T) { function TestFailedTotalKey (line 194) | func TestFailedTotalKey(t *testing.T) { function TestProcessedKey (line 211) | func TestProcessedKey(t *testing.T) { function TestFailedKey (line 230) | func TestFailedKey(t *testing.T) { function TestServerInfoKey (line 249) | func TestServerInfoKey(t *testing.T) { function TestWorkersKey (line 269) | func TestWorkersKey(t *testing.T) { function TestSchedulerEntriesKey (line 289) | func TestSchedulerEntriesKey(t *testing.T) { function TestSchedulerHistoryKey (line 306) | func TestSchedulerHistoryKey(t *testing.T) { function toBytes (line 324) | func toBytes(m map[string]interface{}) []byte { function TestUniqueKey (line 332) | func TestUniqueKey(t *testing.T) { function TestGroupKey (line 398) | func TestGroupKey(t *testing.T) { function TestAggregationSetKey (line 424) | func TestAggregationSetKey(t *testing.T) { function TestAllGroups (line 453) | func TestAllGroups(t *testing.T) { function TestAllAggregationSets (line 476) | func TestAllAggregationSets(t *testing.T) { function TestMessageEncoding (line 499) | func TestMessageEncoding(t *testing.T) { function TestServerInfoEncoding (line 551) | func TestServerInfoEncoding(t *testing.T) { function TestWorkerInfoEncoding (line 588) | func TestWorkerInfoEncoding(t *testing.T) { function TestSchedulerEntryEncoding (line 625) | func TestSchedulerEntryEncoding(t *testing.T) { function TestSchedulerEnqueueEventEncoding (line 660) | func TestSchedulerEnqueueEventEncoding(t *testing.T) { function TestCancelationsConcurrentAccess (line 692) | func TestCancelationsConcurrentAccess(t *testing.T) { function TestLeaseReset (line 735) | func TestLeaseReset(t *testing.T) { function TestLeaseNotifyExpiration (line 770) | func TestLeaseNotifyExpiration(t *testing.T) { FILE: internal/context/context.go type taskMetadata (line 15) | type taskMetadata struct type ctxKey (line 24) | type ctxKey constant metadataCtxKey (line 28) | metadataCtxKey ctxKey = 0 function New (line 31) | func New(base context.Context, msg *base.TaskMessage, deadline time.Time... function GetTaskID (line 46) | func GetTaskID(ctx context.Context) (id string, ok bool) { function GetRetryCount (line 58) | func GetRetryCount(ctx context.Context) (n int, ok bool) { function GetMaxRetry (line 70) | func GetMaxRetry(ctx context.Context) (n int, ok bool) { function GetQueueName (line 81) | func GetQueueName(ctx context.Context) (qname string, ok bool) { FILE: internal/context/context_test.go function TestCreateContextWithFutureDeadline (line 18) | func TestCreateContextWithFutureDeadline(t *testing.T) { function TestCreateContextWithBaseContext (line 57) | func TestCreateContextWithBaseContext(t *testing.T) { function TestCreateContextWithPastDeadline (line 104) | func TestCreateContextWithPastDeadline(t *testing.T) { function TestGetTaskMetadataFromContext (line 137) | func TestGetTaskMetadataFromContext(t *testing.T) { function TestGetTaskMetadataFromContextError (line 185) | func TestGetTaskMetadataFromContextError(t *testing.T) { FILE: internal/errors/errors.go type Error (line 23) | type Error struct method DebugString (line 29) | func (e *Error) DebugString() string { method Error (line 49) | func (e *Error) Error() string { method Unwrap (line 63) | func (e *Error) Unwrap() error { type Code (line 68) | type Code method String (line 81) | func (c Code) String() string { constant Unspecified (line 72) | Unspecified Code = iota constant NotFound (line 73) | NotFound constant FailedPrecondition (line 74) | FailedPrecondition constant Internal (line 75) | Internal constant AlreadyExists (line 76) | AlreadyExists constant Unknown (line 77) | Unknown type Op (line 101) | type Op function E (line 124) | func E(args ...interface{}) error { function CanonicalCode (line 150) | func CanonicalCode(err error) Code { type TaskNotFoundError (line 181) | type TaskNotFoundError struct method Error (line 186) | func (e *TaskNotFoundError) Error() string { function IsTaskNotFound (line 191) | func IsTaskNotFound(err error) bool { type QueueNotFoundError (line 197) | type QueueNotFoundError struct method Error (line 201) | func (e *QueueNotFoundError) Error() string { function IsQueueNotFound (line 206) | func IsQueueNotFound(err error) bool { type QueueNotEmptyError (line 212) | type QueueNotEmptyError struct method Error (line 216) | func (e *QueueNotEmptyError) Error() string { function IsQueueNotEmpty (line 221) | func IsQueueNotEmpty(err error) bool { type TaskAlreadyArchivedError (line 227) | type TaskAlreadyArchivedError struct method Error (line 232) | func (e *TaskAlreadyArchivedError) Error() string { function IsTaskAlreadyArchived (line 237) | func IsTaskAlreadyArchived(err error) bool { type RedisCommandError (line 243) | type RedisCommandError struct method Error (line 248) | func (e *RedisCommandError) Error() string { method Unwrap (line 252) | func (e *RedisCommandError) Unwrap() error { return e.Err } function IsRedisCommandError (line 255) | func IsRedisCommandError(err error) bool { type PanicError (line 261) | type PanicError struct method Error (line 265) | func (e *PanicError) Error() string { function IsPanicError (line 270) | func IsPanicError(err error) bool { function New (line 284) | func New(text string) error { return errors.New(text) } function Is (line 290) | func Is(err, target error) bool { return errors.Is(err, target) } function As (line 297) | func As(err error, target interface{}) bool { return errors.As(err, targ... function Unwrap (line 304) | func Unwrap(err error) error { return errors.Unwrap(err) } FILE: internal/errors/errors_test.go function TestErrorDebugString (line 9) | func TestErrorDebugString(t *testing.T) { function TestErrorString (line 36) | func TestErrorString(t *testing.T) { function TestErrorIs (line 63) | func TestErrorIs(t *testing.T) { function TestErrorAs (line 87) | func TestErrorAs(t *testing.T) { function TestErrorPredicates (line 109) | func TestErrorPredicates(t *testing.T) { function TestCanonicalCode (line 149) | func TestCanonicalCode(t *testing.T) { FILE: internal/log/log.go type Base (line 17) | type Base interface type baseLogger (line 37) | type baseLogger struct method Debug (line 42) | func (l *baseLogger) Debug(args ...interface{}) { method Info (line 47) | func (l *baseLogger) Info(args ...interface{}) { method Warn (line 52) | func (l *baseLogger) Warn(args ...interface{}) { method Error (line 57) | func (l *baseLogger) Error(args ...interface{}) { method Fatal (line 63) | func (l *baseLogger) Fatal(args ...interface{}) { method prefixPrint (line 68) | func (l *baseLogger) prefixPrint(prefix string, args ...interface{}) { function newBase (line 74) | func newBase(out io.Writer) *baseLogger { function NewLogger (line 83) | func NewLogger(base Base) *Logger { type Logger (line 91) | type Logger struct method canLogAt (line 145) | func (l *Logger) canLogAt(v Level) bool { method Debug (line 151) | func (l *Logger) Debug(args ...interface{}) { method Info (line 158) | func (l *Logger) Info(args ...interface{}) { method Warn (line 165) | func (l *Logger) Warn(args ...interface{}) { method Error (line 172) | func (l *Logger) Error(args ...interface{}) { method Fatal (line 179) | func (l *Logger) Fatal(args ...interface{}) { method Debugf (line 186) | func (l *Logger) Debugf(format string, args ...interface{}) { method Infof (line 190) | func (l *Logger) Infof(format string, args ...interface{}) { method Warnf (line 194) | func (l *Logger) Warnf(format string, args ...interface{}) { method Errorf (line 198) | func (l *Logger) Errorf(format string, args ...interface{}) { method Fatalf (line 202) | func (l *Logger) Fatalf(format string, args ...interface{}) { method SetLevel (line 208) | func (l *Logger) SetLevel(v Level) { type Level (line 101) | type Level method String (line 127) | func (l Level) String() string { constant DebugLevel (line 106) | DebugLevel Level = iota constant InfoLevel (line 109) | InfoLevel constant WarnLevel (line 113) | WarnLevel constant ErrorLevel (line 117) | ErrorLevel constant FatalLevel (line 121) | FatalLevel FILE: internal/log/log_test.go constant rgxPID (line 16) | rgxPID = `[0-9]+` constant rgxdate (line 17) | rgxdate = `[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]` constant rgxtime (line 18) | rgxtime = `[0-9][0-9]:[0-9][0-9]:[0-9][0-9]` constant rgxmicroseconds (line 19) | rgxmicroseconds = `\.[0-9][0-9][0-9][0-9][0-9][0-9]` type tester (line 22) | type tester struct function TestLoggerDebug (line 28) | func TestLoggerDebug(t *testing.T) { function TestLoggerInfo (line 62) | func TestLoggerInfo(t *testing.T) { function TestLoggerWarn (line 96) | func TestLoggerWarn(t *testing.T) { function TestLoggerError (line 130) | func TestLoggerError(t *testing.T) { type formatTester (line 164) | type formatTester struct function TestLoggerDebugf (line 171) | func TestLoggerDebugf(t *testing.T) { function TestLoggerInfof (line 200) | func TestLoggerInfof(t *testing.T) { function TestLoggerWarnf (line 229) | func TestLoggerWarnf(t *testing.T) { function TestLoggerErrorf (line 258) | func TestLoggerErrorf(t *testing.T) { function TestLoggerWithLowerLevels (line 287) | func TestLoggerWithLowerLevels(t *testing.T) { function TestLoggerWithSameOrHigherLevels (line 340) | func TestLoggerWithSameOrHigherLevels(t *testing.T) { FILE: internal/proto/asynq.pb.go constant _ (line 24) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 26) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type TaskMessage (line 32) | type TaskMessage struct method Reset (line 79) | func (x *TaskMessage) Reset() { method String (line 86) | func (x *TaskMessage) String() string { method ProtoMessage (line 90) | func (*TaskMessage) ProtoMessage() {} method ProtoReflect (line 92) | func (x *TaskMessage) ProtoReflect() protoreflect.Message { method Descriptor (line 105) | func (*TaskMessage) Descriptor() ([]byte, []int) { method GetType (line 109) | func (x *TaskMessage) GetType() string { method GetPayload (line 116) | func (x *TaskMessage) GetPayload() []byte { method GetHeaders (line 123) | func (x *TaskMessage) GetHeaders() map[string]string { method GetId (line 130) | func (x *TaskMessage) GetId() string { method GetQueue (line 137) | func (x *TaskMessage) GetQueue() string { method GetRetry (line 144) | func (x *TaskMessage) GetRetry() int32 { method GetRetried (line 151) | func (x *TaskMessage) GetRetried() int32 { method GetErrorMsg (line 158) | func (x *TaskMessage) GetErrorMsg() string { method GetLastFailedAt (line 165) | func (x *TaskMessage) GetLastFailedAt() int64 { method GetTimeout (line 172) | func (x *TaskMessage) GetTimeout() int64 { method GetDeadline (line 179) | func (x *TaskMessage) GetDeadline() int64 { method GetUniqueKey (line 186) | func (x *TaskMessage) GetUniqueKey() string { method GetGroupKey (line 193) | func (x *TaskMessage) GetGroupKey() string { method GetRetention (line 200) | func (x *TaskMessage) GetRetention() int64 { method GetCompletedAt (line 207) | func (x *TaskMessage) GetCompletedAt() int64 { type ServerInfo (line 215) | type ServerInfo struct method Reset (line 242) | func (x *ServerInfo) Reset() { method String (line 249) | func (x *ServerInfo) String() string { method ProtoMessage (line 253) | func (*ServerInfo) ProtoMessage() {} method ProtoReflect (line 255) | func (x *ServerInfo) ProtoReflect() protoreflect.Message { method Descriptor (line 268) | func (*ServerInfo) Descriptor() ([]byte, []int) { method GetHost (line 272) | func (x *ServerInfo) GetHost() string { method GetPid (line 279) | func (x *ServerInfo) GetPid() int32 { method GetServerId (line 286) | func (x *ServerInfo) GetServerId() string { method GetConcurrency (line 293) | func (x *ServerInfo) GetConcurrency() int32 { method GetQueues (line 300) | func (x *ServerInfo) GetQueues() map[string]int32 { method GetStrictPriority (line 307) | func (x *ServerInfo) GetStrictPriority() bool { method GetStatus (line 314) | func (x *ServerInfo) GetStatus() string { method GetStartTime (line 321) | func (x *ServerInfo) GetStartTime() *timestamppb.Timestamp { method GetActiveWorkerCount (line 328) | func (x *ServerInfo) GetActiveWorkerCount() int32 { type WorkerInfo (line 336) | type WorkerInfo struct method Reset (line 361) | func (x *WorkerInfo) Reset() { method String (line 368) | func (x *WorkerInfo) String() string { method ProtoMessage (line 372) | func (*WorkerInfo) ProtoMessage() {} method ProtoReflect (line 374) | func (x *WorkerInfo) ProtoReflect() protoreflect.Message { method Descriptor (line 387) | func (*WorkerInfo) Descriptor() ([]byte, []int) { method GetHost (line 391) | func (x *WorkerInfo) GetHost() string { method GetPid (line 398) | func (x *WorkerInfo) GetPid() int32 { method GetServerId (line 405) | func (x *WorkerInfo) GetServerId() string { method GetTaskId (line 412) | func (x *WorkerInfo) GetTaskId() string { method GetTaskType (line 419) | func (x *WorkerInfo) GetTaskType() string { method GetTaskPayload (line 426) | func (x *WorkerInfo) GetTaskPayload() []byte { method GetQueue (line 433) | func (x *WorkerInfo) GetQueue() string { method GetStartTime (line 440) | func (x *WorkerInfo) GetStartTime() *timestamppb.Timestamp { method GetDeadline (line 447) | func (x *WorkerInfo) GetDeadline() *timestamppb.Timestamp { type SchedulerEntry (line 456) | type SchedulerEntry struct method Reset (line 477) | func (x *SchedulerEntry) Reset() { method String (line 484) | func (x *SchedulerEntry) String() string { method ProtoMessage (line 488) | func (*SchedulerEntry) ProtoMessage() {} method ProtoReflect (line 490) | func (x *SchedulerEntry) ProtoReflect() protoreflect.Message { method Descriptor (line 503) | func (*SchedulerEntry) Descriptor() ([]byte, []int) { method GetId (line 507) | func (x *SchedulerEntry) GetId() string { method GetSpec (line 514) | func (x *SchedulerEntry) GetSpec() string { method GetTaskType (line 521) | func (x *SchedulerEntry) GetTaskType() string { method GetTaskPayload (line 528) | func (x *SchedulerEntry) GetTaskPayload() []byte { method GetEnqueueOptions (line 535) | func (x *SchedulerEntry) GetEnqueueOptions() []string { method GetNextEnqueueTime (line 542) | func (x *SchedulerEntry) GetNextEnqueueTime() *timestamppb.Timestamp { method GetPrevEnqueueTime (line 549) | func (x *SchedulerEntry) GetPrevEnqueueTime() *timestamppb.Timestamp { type SchedulerEnqueueEvent (line 558) | type SchedulerEnqueueEvent struct method Reset (line 568) | func (x *SchedulerEnqueueEvent) Reset() { method String (line 575) | func (x *SchedulerEnqueueEvent) String() string { method ProtoMessage (line 579) | func (*SchedulerEnqueueEvent) ProtoMessage() {} method ProtoReflect (line 581) | func (x *SchedulerEnqueueEvent) ProtoReflect() protoreflect.Message { method Descriptor (line 594) | func (*SchedulerEnqueueEvent) Descriptor() ([]byte, []int) { method GetTaskId (line 598) | func (x *SchedulerEnqueueEvent) GetTaskId() string { method GetEnqueueTime (line 605) | func (x *SchedulerEnqueueEvent) GetEnqueueTime() *timestamppb.Timestamp { constant file_asynq_proto_rawDesc (line 614) | file_asynq_proto_rawDesc = "" + function file_asynq_proto_rawDescGZIP (line 682) | func file_asynq_proto_rawDescGZIP() []byte { function init (line 716) | func init() { file_asynq_proto_init() } function file_asynq_proto_init (line 717) | func file_asynq_proto_init() { FILE: internal/rdb/benchmark_test.go function BenchmarkEnqueue (line 17) | func BenchmarkEnqueue(b *testing.B) { function BenchmarkEnqueueUnique (line 34) | func BenchmarkEnqueueUnique(b *testing.B) { function BenchmarkSchedule (line 57) | func BenchmarkSchedule(b *testing.B) { function BenchmarkScheduleUnique (line 75) | func BenchmarkScheduleUnique(b *testing.B) { function BenchmarkDequeueSingleQueue (line 99) | func BenchmarkDequeueSingleQueue(b *testing.B) { function BenchmarkDequeueMultipleQueues (line 122) | func BenchmarkDequeueMultipleQueues(b *testing.B) { function BenchmarkDone (line 148) | func BenchmarkDone(b *testing.B) { function BenchmarkRetry (line 175) | func BenchmarkRetry(b *testing.B) { function BenchmarkArchive (line 202) | func BenchmarkArchive(b *testing.B) { function BenchmarkRequeue (line 229) | func BenchmarkRequeue(b *testing.B) { function BenchmarkCheckAndEnqueue (line 256) | func BenchmarkCheckAndEnqueue(b *testing.B) { FILE: internal/rdb/inspect.go method AllQueues (line 20) | func (r *RDB) AllQueues() ([]string, error) { type Stats (line 25) | type Stats struct type DailyStats (line 68) | type DailyStats struct method CurrentStats (line 140) | func (r *RDB) CurrentStats(qname string) (*Stats, error) { method memoryUsage (line 318) | func (r *RDB) memoryUsage(qname string) (int64, error) { method HistoricalStats (line 363) | func (r *RDB) HistoricalStats(qname string, n int) ([]*DailyStats, error) { method RedisInfo (line 406) | func (r *RDB) RedisInfo() (map[string]string, error) { method RedisClusterInfo (line 415) | func (r *RDB) RedisClusterInfo() (map[string]string, error) { function parseInfo (line 423) | func parseInfo(infoStr string) (map[string]string, error) { function reverse (line 436) | func reverse(x []*base.TaskInfo) { method checkQueueExists (line 445) | func (r *RDB) checkQueueExists(qname string) error { method GetTaskInfo (line 485) | func (r *RDB) GetTaskInfo(qname, id string) (*base.TaskInfo, error) { type GroupStat (line 550) | type GroupStat struct method GroupStats (line 578) | func (r *RDB) GroupStats(qname string) ([]*GroupStat, error) { type Pagination (line 602) | type Pagination struct method start (line 610) | func (p Pagination) start() int64 { method stop (line 614) | func (p Pagination) stop() int64 { method ListPending (line 619) | func (r *RDB) ListPending(qname string, pgn Pagination) ([]*base.TaskInf... method ListActive (line 636) | func (r *RDB) ListActive(qname string, pgn Pagination) ([]*base.TaskInfo... method listMessages (line 669) | func (r *RDB) listMessages(qname string, state base.TaskState, pgn Pagin... method ListScheduled (line 720) | func (r *RDB) ListScheduled(qname string, pgn Pagination) ([]*base.TaskI... method ListRetry (line 738) | func (r *RDB) ListRetry(qname string, pgn Pagination) ([]*base.TaskInfo,... method ListArchived (line 755) | func (r *RDB) ListArchived(qname string, pgn Pagination) ([]*base.TaskIn... method ListCompleted (line 772) | func (r *RDB) ListCompleted(qname string, pgn Pagination) ([]*base.TaskI... method ListAggregating (line 789) | func (r *RDB) ListAggregating(qname, gname string, pgn Pagination) ([]*b... method queueExists (line 806) | func (r *RDB) queueExists(qname string) (bool, error) { method listZSetEntries (line 834) | func (r *RDB) listZSetEntries(qname string, state base.TaskState, key st... method RunAllScheduledTasks (line 883) | func (r *RDB) RunAllScheduledTasks(qname string) (int64, error) { method RunAllRetryTasks (line 898) | func (r *RDB) RunAllRetryTasks(qname string) (int64, error) { method RunAllArchivedTasks (line 913) | func (r *RDB) RunAllArchivedTasks(qname string) (int64, error) { method RunAllAggregatingTasks (line 951) | func (r *RDB) RunAllAggregatingTasks(qname, gname string) (int64, error) { method RunTask (line 1028) | func (r *RDB) RunTask(qname, id string) error { method runAll (line 1085) | func (r *RDB) runAll(zset, qname string) (int64, error) { method ArchiveAllRetryTasks (line 1113) | func (r *RDB) ArchiveAllRetryTasks(qname string) (int64, error) { method ArchiveAllScheduledTasks (line 1128) | func (r *RDB) ArchiveAllScheduledTasks(qname string) (int64, error) { method ArchiveAllAggregatingTasks (line 1171) | func (r *RDB) ArchiveAllAggregatingTasks(qname, gname string) (int64, er... method ArchiveAllPendingTasks (line 1228) | func (r *RDB) ArchiveAllPendingTasks(qname string) (int64, error) { method ArchiveTask (line 1317) | func (r *RDB) ArchiveTask(qname, id string) error { method archiveAll (line 1385) | func (r *RDB) archiveAll(src, dst, qname string) (int64, error) { method UpdateTaskPayload (line 1458) | func (r *RDB) UpdateTaskPayload(qname, id string, payload []byte) error { method DeleteTask (line 1552) | func (r *RDB) DeleteTask(qname, id string) error { method DeleteAllArchivedTasks (line 1588) | func (r *RDB) DeleteAllArchivedTasks(qname string) (int64, error) { method DeleteAllRetryTasks (line 1602) | func (r *RDB) DeleteAllRetryTasks(qname string) (int64, error) { method DeleteAllScheduledTasks (line 1616) | func (r *RDB) DeleteAllScheduledTasks(qname string) (int64, error) { method DeleteAllCompletedTasks (line 1630) | func (r *RDB) DeleteAllCompletedTasks(qname string) (int64, error) { method deleteAll (line 1664) | func (r *RDB) deleteAll(key, qname string) (int64, error) { method DeleteAllAggregatingTasks (line 1703) | func (r *RDB) DeleteAllAggregatingTasks(qname, gname string) (int64, err... method DeleteAllPendingTasks (line 1746) | func (r *RDB) DeleteAllPendingTasks(qname string) (int64, error) { method RemoveQueue (line 1886) | func (r *RDB) RemoveQueue(qname string, force bool) error { method ListServers (line 1941) | func (r *RDB) ListServers() ([]*base.ServerInfo, error) { method ListWorkers (line 1974) | func (r *RDB) ListWorkers() ([]*base.WorkerInfo, error) { method ListSchedulerEntries (line 2010) | func (r *RDB) ListSchedulerEntries() ([]*base.SchedulerEntry, error) { method ListSchedulerEnqueueEvents (line 2038) | func (r *RDB) ListSchedulerEnqueueEvents(entryID string, pgn Pagination)... method Pause (line 2060) | func (r *RDB) Pause(qname string) error { method Unpause (line 2073) | func (r *RDB) Unpause(qname string) error { method ClusterKeySlot (line 2086) | func (r *RDB) ClusterKeySlot(qname string) (int64, error) { method ClusterNodes (line 2092) | func (r *RDB) ClusterNodes(qname string) ([]redis.ClusterNode, error) { FILE: internal/rdb/inspect_test.go function TestAllQueues (line 25) | func TestAllQueues(t *testing.T) { function TestCurrentStats (line 56) | func TestCurrentStats(t *testing.T) { function TestCurrentStatsWithNonExistentQueue (line 332) | func TestCurrentStatsWithNonExistentQueue(t *testing.T) { function TestHistoricalStats (line 343) | func TestHistoricalStats(t *testing.T) { function TestRedisInfo (line 397) | func TestRedisInfo(t *testing.T) { function TestGroupStats (line 422) | func TestGroupStats(t *testing.T) { function TestGetTaskInfo (line 517) | func TestGetTaskInfo(t *testing.T) { function TestGetTaskInfoError (line 660) | func TestGetTaskInfoError(t *testing.T) { function TestListPending (line 738) | func TestListPending(t *testing.T) { function TestListPendingPagination (line 811) | func TestListPendingPagination(t *testing.T) { function TestListActive (line 878) | func TestListActive(t *testing.T) { function TestListActivePagination (line 930) | func TestListActivePagination(t *testing.T) { function TestListScheduled (line 987) | func TestListScheduled(t *testing.T) { function TestListScheduledPagination (line 1065) | func TestListScheduledPagination(t *testing.T) { function TestListRetry (line 1123) | func TestListRetry(t *testing.T) { function TestListRetryPagination (line 1220) | func TestListRetryPagination(t *testing.T) { function TestListArchived (line 1282) | func TestListArchived(t *testing.T) { function TestListArchivedPagination (line 1373) | func TestListArchivedPagination(t *testing.T) { function TestListCompleted (line 1432) | func TestListCompleted(t *testing.T) { function TestListCompletedPagination (line 1513) | func TestListCompletedPagination(t *testing.T) { function TestListAggregating (line 1572) | func TestListAggregating(t *testing.T) { function TestListAggregatingPagination (line 1657) | func TestListAggregatingPagination(t *testing.T) { function TestListTasksError (line 1786) | func TestListTasksError(t *testing.T) { function TestRunArchivedTask (line 1827) | func TestRunArchivedTask(t *testing.T) { function TestRunRetryTask (line 1907) | func TestRunRetryTask(t *testing.T) { function TestRunAggregatingTask (line 1987) | func TestRunAggregatingTask(t *testing.T) { function TestRunScheduledTask (line 2092) | func TestRunScheduledTask(t *testing.T) { function TestRunTaskError (line 2172) | func TestRunTaskError(t *testing.T) { function TestRunAllScheduledTasks (line 2327) | func TestRunAllScheduledTasks(t *testing.T) { function TestRunAllRetryTasks (line 2433) | func TestRunAllRetryTasks(t *testing.T) { function TestRunAllArchivedTasks (line 2539) | func TestRunAllArchivedTasks(t *testing.T) { function TestRunAllTasksError (line 2645) | func TestRunAllTasksError(t *testing.T) { function TestRunAllAggregatingTasks (line 2677) | func TestRunAllAggregatingTasks(t *testing.T) { function TestArchiveRetryTask (line 2786) | func TestArchiveRetryTask(t *testing.T) { function TestArchiveScheduledTask (line 2887) | func TestArchiveScheduledTask(t *testing.T) { function TestArchiveAggregatingTask (line 2988) | func TestArchiveAggregatingTask(t *testing.T) { function TestArchivePendingTask (line 3097) | func TestArchivePendingTask(t *testing.T) { function TestArchiveTaskError (line 3180) | func TestArchiveTaskError(t *testing.T) { function TestArchiveAllPendingTasks (line 3336) | func TestArchiveAllPendingTasks(t *testing.T) { function TestArchiveAllAggregatingTasks (line 3472) | func TestArchiveAllAggregatingTasks(t *testing.T) { function TestArchiveAllRetryTasks (line 3586) | func TestArchiveAllRetryTasks(t *testing.T) { function TestArchiveAllScheduledTasks (line 3736) | func TestArchiveAllScheduledTasks(t *testing.T) { function TestArchiveAllTasksError (line 3886) | func TestArchiveAllTasksError(t *testing.T) { function TestDeleteArchivedTask (line 3915) | func TestDeleteArchivedTask(t *testing.T) { function TestDeleteRetryTask (line 3981) | func TestDeleteRetryTask(t *testing.T) { function TestDeleteScheduledTask (line 4047) | func TestDeleteScheduledTask(t *testing.T) { function TestDeleteAggregatingTask (line 4113) | func TestDeleteAggregatingTask(t *testing.T) { function TestDeletePendingTask (line 4208) | func TestDeletePendingTask(t *testing.T) { function TestDeleteTaskWithUniqueLock (line 4263) | func TestDeleteTaskWithUniqueLock(t *testing.T) { function TestDeleteTaskError (line 4319) | func TestDeleteTaskError(t *testing.T) { function TestDeleteAllArchivedTasks (line 4418) | func TestDeleteAllArchivedTasks(t *testing.T) { function newCompletedTaskMessage (line 4480) | func newCompletedTaskMessage(qname, typename string, retention time.Dura... function TestDeleteAllCompletedTasks (line 4487) | func TestDeleteAllCompletedTasks(t *testing.T) { function TestDeleteAllArchivedTasksWithUniqueKey (line 4550) | func TestDeleteAllArchivedTasksWithUniqueKey(t *testing.T) { function TestDeleteAllRetryTasks (line 4623) | func TestDeleteAllRetryTasks(t *testing.T) { function TestDeleteAllScheduledTasks (line 4685) | func TestDeleteAllScheduledTasks(t *testing.T) { function TestDeleteAllAggregatingTasks (line 4747) | func TestDeleteAllAggregatingTasks(t *testing.T) { function TestDeleteAllPendingTasks (line 4846) | func TestDeleteAllPendingTasks(t *testing.T) { function TestDeleteAllTasksError (line 4903) | func TestDeleteAllTasksError(t *testing.T) { function TestRemoveQueue (line 4935) | func TestRemoveQueue(t *testing.T) { function TestRemoveQueueError (line 5040) | func TestRemoveQueueError(t *testing.T) { function TestListServers (line 5188) | func TestListServers(t *testing.T) { function TestListWorkers (line 5250) | func TestListWorkers(t *testing.T) { function TestWriteListClearSchedulerEntries (line 5327) | func TestWriteListClearSchedulerEntries(t *testing.T) { function TestSchedulerEnqueueEvents (line 5373) | func TestSchedulerEnqueueEvents(t *testing.T) { function TestRecordSchedulerEnqueueEventTrimsDataSet (line 5431) | func TestRecordSchedulerEnqueueEventTrimsDataSet(t *testing.T) { function TestPause (line 5478) | func TestPause(t *testing.T) { function TestPauseError (line 5502) | func TestPauseError(t *testing.T) { function TestUnpause (line 5528) | func TestUnpause(t *testing.T) { function TestUnpauseError (line 5557) | func TestUnpauseError(t *testing.T) { FILE: internal/rdb/rdb.go constant statsTTL (line 23) | statsTTL = 90 * 24 * time.Hour constant LeaseDuration (line 26) | LeaseDuration = 30 * time.Second type RDB (line 29) | type RDB struct method Close (line 44) | func (r *RDB) Close() error { method Client (line 49) | func (r *RDB) Client() redis.UniversalClient { method SetClock (line 56) | func (r *RDB) SetClock(c timeutil.Clock) { method Ping (line 61) | func (r *RDB) Ping() error { method runScript (line 65) | func (r *RDB) runScript(ctx context.Context, op errors.Op, script *red... method runScriptWithErrorCode (line 73) | func (r *RDB) runScriptWithErrorCode(ctx context.Context, op errors.Op... method Enqueue (line 111) | func (r *RDB) Enqueue(ctx context.Context, msg *base.TaskMessage) error { method EnqueueUnique (line 176) | func (r *RDB) EnqueueUnique(ctx context.Context, msg *base.TaskMessage... method Dequeue (line 244) | func (r *RDB) Dequeue(qnames ...string) (msg *base.TaskMessage, leaseE... method Done (line 346) | func (r *RDB) Done(ctx context.Context, msg *base.TaskMessage) error { method MarkAsComplete (line 448) | func (r *RDB) MarkAsComplete(ctx context.Context, msg *base.TaskMessag... method Requeue (line 498) | func (r *RDB) Requeue(ctx context.Context, msg *base.TaskMessage) error { method AddToGroup (line 534) | func (r *RDB) AddToGroup(ctx context.Context, msg *base.TaskMessage, g... method AddToGroupUnique (line 599) | func (r *RDB) AddToGroupUnique(ctx context.Context, msg *base.TaskMess... method Schedule (line 659) | func (r *RDB) Schedule(ctx context.Context, msg *base.TaskMessage, pro... method ScheduleUnique (line 721) | func (r *RDB) ScheduleUnique(ctx context.Context, msg *base.TaskMessag... method Retry (line 804) | func (r *RDB) Retry(ctx context.Context, msg *base.TaskMessage, proces... method Archive (line 906) | func (r *RDB) Archive(ctx context.Context, msg *base.TaskMessage, errM... method ForwardIfReady (line 943) | func (r *RDB) ForwardIfReady(qnames ...string) error { method forward (line 983) | func (r *RDB) forward(delayedKey, pendingKey, taskKeyPrefix, groupKeyP... method forwardAll (line 1005) | func (r *RDB) forwardAll(qname string) (err error) { method ListGroups (line 1023) | func (r *RDB) ListGroups(qname string) ([]string, error) { method AggregationCheck (line 1126) | func (r *RDB) AggregationCheck(qname, gname string, t time.Time, grace... method ReadAggregationSet (line 1179) | func (r *RDB) ReadAggregationSet(qname, gname, setID string) ([]*base.... method DeleteAggregationSet (line 1229) | func (r *RDB) DeleteAggregationSet(ctx context.Context, qname, gname, ... method ReclaimStaleAggregationSets (line 1258) | func (r *RDB) ReclaimStaleAggregationSets(qname string) error { method DeleteExpiredCompletedTasks (line 1280) | func (r *RDB) DeleteExpiredCompletedTasks(qname string, batchSize int)... method deleteExpiredCompletedTasks (line 1294) | func (r *RDB) deleteExpiredCompletedTasks(qname string, batchSize int)... method ListLeaseExpired (line 1330) | func (r *RDB) ListLeaseExpired(cutoff time.Time, qnames ...string) ([]... method ExtendLease (line 1357) | func (r *RDB) ExtendLease(qname string, ids ...string) (expirationTime... method WriteServerState (line 1389) | func (r *RDB) WriteServerState(info *base.ServerInfo, workers []*base.... method ClearServerState (line 1424) | func (r *RDB) ClearServerState(host string, pid int, serverID string) ... method WriteSchedulerEntries (line 1450) | func (r *RDB) WriteSchedulerEntries(schedulerID string, entries []*bas... method ClearSchedulerEntries (line 1471) | func (r *RDB) ClearSchedulerEntries(schedulerID string) error { method CancelationPubSub (line 1485) | func (r *RDB) CancelationPubSub() (*redis.PubSub, error) { method PublishCancelation (line 1498) | func (r *RDB) PublishCancelation(id string) error { method RecordSchedulerEnqueueEvent (line 1520) | func (r *RDB) RecordSchedulerEnqueueEvent(entryID string, event *base.... method ClearSchedulerHistory (line 1539) | func (r *RDB) ClearSchedulerHistory(entryID string) error { method WriteResult (line 1550) | func (r *RDB) WriteResult(qname, taskID string, data []byte) (int, err... function NewRDB (line 36) | func NewRDB(client redis.UniversalClient) *RDB { constant maxArchiveSize (line 840) | maxArchiveSize = 10000 constant archivedExpirationInDays (line 841) | archivedExpirationInDays = 90 constant aggregationTimeout (line 1117) | aggregationTimeout = 2 * time.Minute constant maxEvents (line 1517) | maxEvents = 1000 FILE: internal/rdb/rdb_test.go function init (line 37) | func init() { function setup (line 44) | func setup(tb testing.TB) (r *RDB) { function TestEnqueue (line 65) | func TestEnqueue(t *testing.T) { function TestEnqueueTaskIdConflictError (line 127) | func TestEnqueueTaskIdConflictError(t *testing.T) { function TestEnqueueQueueCache (line 163) | func TestEnqueueQueueCache(t *testing.T) { function TestEnqueueUnique (line 216) | func TestEnqueueUnique(t *testing.T) { function TestEnqueueUniqueTaskIdConflictError (line 310) | func TestEnqueueUniqueTaskIdConflictError(t *testing.T) { function TestDequeue (line 349) | func TestDequeue(t *testing.T) { function TestDequeueError (line 497) | func TestDequeueError(t *testing.T) { function TestDequeueIgnoresPausedQueues (line 587) | func TestDequeueIgnoresPausedQueues(t *testing.T) { function TestDone (line 700) | func TestDone(t *testing.T) { function TestDoneWithMaxCounter (line 856) | func TestDoneWithMaxCounter(t *testing.T) { function TestMarkAsComplete (line 891) | func TestMarkAsComplete(t *testing.T) { function TestRequeue (line 1077) | func TestRequeue(t *testing.T) { function TestAddToGroup (line 1223) | func TestAddToGroup(t *testing.T) { function TestAddToGroupeTaskIdConflictError (line 1290) | func TestAddToGroupeTaskIdConflictError(t *testing.T) { function TestAddToGroupUnique (line 1330) | func TestAddToGroupUnique(t *testing.T) { function TestAddToGroupUniqueTaskIdConflictError (line 1413) | func TestAddToGroupUniqueTaskIdConflictError(t *testing.T) { function TestSchedule (line 1454) | func TestSchedule(t *testing.T) { function TestScheduleTaskIdConflictError (line 1512) | func TestScheduleTaskIdConflictError(t *testing.T) { function TestScheduleUnique (line 1551) | func TestScheduleUnique(t *testing.T) { function TestScheduleUniqueTaskIdConflictError (line 1637) | func TestScheduleUniqueTaskIdConflictError(t *testing.T) { function TestRetry (line 1677) | func TestRetry(t *testing.T) { function TestRetryWithNonFailureError (line 1848) | func TestRetryWithNonFailureError(t *testing.T) { function TestArchive (line 2015) | func TestArchive(t *testing.T) { function TestArchiveTrim (line 2226) | func TestArchiveTrim(t *testing.T) { function TestForwardIfReadyWithGroup (line 2383) | func TestForwardIfReadyWithGroup(t *testing.T) { function TestForwardIfReady (line 2527) | func TestForwardIfReady(t *testing.T) { function newCompletedTask (line 2681) | func newCompletedTask(qname, typename string, payload []byte, completedA... function TestDeleteExpiredCompletedTasks (line 2687) | func TestDeleteExpiredCompletedTasks(t *testing.T) { function TestListLeaseExpired (line 2768) | func TestListLeaseExpired(t *testing.T) { function TestExtendLease (line 2852) | func TestExtendLease(t *testing.T) { function TestWriteServerState (line 2960) | func TestWriteServerState(t *testing.T) { function TestWriteServerStateWithWorkers (line 3026) | func TestWriteServerStateWithWorkers(t *testing.T) { function TestClearServerState (line 3134) | func TestClearServerState(t *testing.T) { function TestCancelationPubSub (line 3235) | func TestCancelationPubSub(t *testing.T) { function TestWriteResult (line 3277) | func TestWriteResult(t *testing.T) { function TestAggregationCheck (line 3313) | func TestAggregationCheck(t *testing.T) { function TestDeleteAggregationSet (line 3667) | func TestDeleteAggregationSet(t *testing.T) { function TestDeleteAggregationSetError (line 3795) | func TestDeleteAggregationSetError(t *testing.T) { function TestReclaimStaleAggregationSets (line 3882) | func TestReclaimStaleAggregationSets(t *testing.T) { function TestListGroups (line 3969) | func TestListGroups(t *testing.T) { FILE: internal/testbroker/testbroker.go type TestBroker (line 22) | type TestBroker struct method Sleep (line 37) | func (tb *TestBroker) Sleep() { method Wakeup (line 43) | func (tb *TestBroker) Wakeup() { method Enqueue (line 49) | func (tb *TestBroker) Enqueue(ctx context.Context, msg *base.TaskMessa... method EnqueueUnique (line 58) | func (tb *TestBroker) EnqueueUnique(ctx context.Context, msg *base.Tas... method Dequeue (line 67) | func (tb *TestBroker) Dequeue(qnames ...string) (*base.TaskMessage, ti... method Done (line 76) | func (tb *TestBroker) Done(ctx context.Context, msg *base.TaskMessage)... method MarkAsComplete (line 85) | func (tb *TestBroker) MarkAsComplete(ctx context.Context, msg *base.Ta... method Requeue (line 94) | func (tb *TestBroker) Requeue(ctx context.Context, msg *base.TaskMessa... method Schedule (line 103) | func (tb *TestBroker) Schedule(ctx context.Context, msg *base.TaskMess... method ScheduleUnique (line 112) | func (tb *TestBroker) ScheduleUnique(ctx context.Context, msg *base.Ta... method Retry (line 121) | func (tb *TestBroker) Retry(ctx context.Context, msg *base.TaskMessage... method Archive (line 130) | func (tb *TestBroker) Archive(ctx context.Context, msg *base.TaskMessa... method ForwardIfReady (line 139) | func (tb *TestBroker) ForwardIfReady(qnames ...string) error { method DeleteExpiredCompletedTasks (line 148) | func (tb *TestBroker) DeleteExpiredCompletedTasks(qname string, batchS... method ListLeaseExpired (line 157) | func (tb *TestBroker) ListLeaseExpired(cutoff time.Time, qnames ...str... method ExtendLease (line 166) | func (tb *TestBroker) ExtendLease(qname string, ids ...string) (time.T... method WriteServerState (line 175) | func (tb *TestBroker) WriteServerState(info *base.ServerInfo, workers ... method ClearServerState (line 184) | func (tb *TestBroker) ClearServerState(host string, pid int, serverID ... method CancelationPubSub (line 193) | func (tb *TestBroker) CancelationPubSub() (*redis.PubSub, error) { method PublishCancelation (line 202) | func (tb *TestBroker) PublishCancelation(id string) error { method WriteResult (line 211) | func (tb *TestBroker) WriteResult(qname, id string, data []byte) (int,... method Ping (line 220) | func (tb *TestBroker) Ping() error { method Close (line 229) | func (tb *TestBroker) Close() error { method AddToGroup (line 238) | func (tb *TestBroker) AddToGroup(ctx context.Context, msg *base.TaskMe... method AddToGroupUnique (line 247) | func (tb *TestBroker) AddToGroupUnique(ctx context.Context, msg *base.... method ListGroups (line 256) | func (tb *TestBroker) ListGroups(qname string) ([]string, error) { method AggregationCheck (line 265) | func (tb *TestBroker) AggregationCheck(qname, gname string, t time.Tim... method ReadAggregationSet (line 274) | func (tb *TestBroker) ReadAggregationSet(qname, gname, aggregationSetI... method DeleteAggregationSet (line 283) | func (tb *TestBroker) DeleteAggregationSet(ctx context.Context, qname,... method ReclaimStaleAggregationSets (line 292) | func (tb *TestBroker) ReclaimStaleAggregationSets(qname string) error { function NewTestBroker (line 33) | func NewTestBroker(b base.Broker) *TestBroker { FILE: internal/testutil/builder.go function makeDefaultTaskMessage (line 14) | func makeDefaultTaskMessage() *base.TaskMessage { type TaskMessageBuilder (line 25) | type TaskMessageBuilder struct method lazyInit (line 33) | func (b *TaskMessageBuilder) lazyInit() { method Build (line 39) | func (b *TaskMessageBuilder) Build() *base.TaskMessage { method SetType (line 44) | func (b *TaskMessageBuilder) SetType(typename string) *TaskMessageBuil... method SetPayload (line 50) | func (b *TaskMessageBuilder) SetPayload(payload []byte) *TaskMessageBu... method SetQueue (line 56) | func (b *TaskMessageBuilder) SetQueue(qname string) *TaskMessageBuilder { method SetRetry (line 62) | func (b *TaskMessageBuilder) SetRetry(n int) *TaskMessageBuilder { method SetTimeout (line 68) | func (b *TaskMessageBuilder) SetTimeout(timeout time.Duration) *TaskMe... method SetDeadline (line 74) | func (b *TaskMessageBuilder) SetDeadline(deadline time.Time) *TaskMess... method SetGroup (line 80) | func (b *TaskMessageBuilder) SetGroup(gname string) *TaskMessageBuilder { function NewTaskMessageBuilder (line 29) | func NewTaskMessageBuilder() *TaskMessageBuilder { FILE: internal/testutil/builder_test.go function TestTaskMessageBuilder (line 16) | func TestTaskMessageBuilder(t *testing.T) { FILE: internal/testutil/testutil.go function EquateInt64Approx (line 26) | func EquateInt64Approx(margin int64) cmp.Option { function NewTaskMessage (line 114) | func NewTaskMessage(taskType string, payload []byte) *base.TaskMessage { function NewTaskMessageWithQueue (line 120) | func NewTaskMessageWithQueue(taskType string, payload []byte, qname stri... function NewLeaseWithClock (line 133) | func NewLeaseWithClock(expirationTime time.Time, clock timeutil.Clock) *... function JSON (line 140) | func JSON(kv map[string]interface{}) []byte { function TaskMessageAfterRetry (line 150) | func TaskMessageAfterRetry(t base.TaskMessage, errMsg string, failedAt t... function TaskMessageWithError (line 158) | func TaskMessageWithError(t base.TaskMessage, errMsg string, failedAt ti... function TaskMessageWithCompletedAt (line 165) | func TaskMessageWithCompletedAt(t base.TaskMessage, completedAt time.Tim... function MustMarshal (line 172) | func MustMarshal(tb testing.TB, msg *base.TaskMessage) string { function MustUnmarshal (line 183) | func MustUnmarshal(tb testing.TB, data string) *base.TaskMessage { function FlushDB (line 193) | func FlushDB(tb testing.TB, r redis.UniversalClient) { function SeedPendingQueue (line 214) | func SeedPendingQueue(tb testing.TB, r redis.UniversalClient, msgs []*ba... function SeedActiveQueue (line 221) | func SeedActiveQueue(tb testing.TB, r redis.UniversalClient, msgs []*bas... function SeedScheduledQueue (line 228) | func SeedScheduledQueue(tb testing.TB, r redis.UniversalClient, entries ... function SeedRetryQueue (line 235) | func SeedRetryQueue(tb testing.TB, r redis.UniversalClient, entries []ba... function SeedArchivedQueue (line 242) | func SeedArchivedQueue(tb testing.TB, r redis.UniversalClient, entries [... function SeedLease (line 249) | func SeedLease(tb testing.TB, r redis.UniversalClient, entries []base.Z,... function SeedCompletedQueue (line 256) | func SeedCompletedQueue(tb testing.TB, r redis.UniversalClient, entries ... function SeedGroup (line 263) | func SeedGroup(tb testing.TB, r redis.UniversalClient, entries []base.Z,... function SeedAggregationSet (line 271) | func SeedAggregationSet(tb testing.TB, r redis.UniversalClient, entries ... function SeedAllPendingQueues (line 280) | func SeedAllPendingQueues(tb testing.TB, r redis.UniversalClient, pendin... function SeedAllActiveQueues (line 288) | func SeedAllActiveQueues(tb testing.TB, r redis.UniversalClient, active ... function SeedAllScheduledQueues (line 296) | func SeedAllScheduledQueues(tb testing.TB, r redis.UniversalClient, sche... function SeedAllRetryQueues (line 304) | func SeedAllRetryQueues(tb testing.TB, r redis.UniversalClient, retry ma... function SeedAllArchivedQueues (line 312) | func SeedAllArchivedQueues(tb testing.TB, r redis.UniversalClient, archi... function SeedAllLease (line 320) | func SeedAllLease(tb testing.TB, r redis.UniversalClient, lease map[stri... function SeedAllCompletedQueues (line 328) | func SeedAllCompletedQueues(tb testing.TB, r redis.UniversalClient, comp... function SeedAllGroups (line 338) | func SeedAllGroups(tb testing.TB, r redis.UniversalClient, groups map[st... function seedRedisList (line 347) | func seedRedisList(tb testing.TB, c redis.UniversalClient, key string, function seedRedisZSet (line 374) | func seedRedisZSet(tb testing.TB, c redis.UniversalClient, key string, function GetPendingMessages (line 405) | func GetPendingMessages(tb testing.TB, r redis.UniversalClient, qname st... function GetActiveMessages (line 412) | func GetActiveMessages(tb testing.TB, r redis.UniversalClient, qname str... function GetScheduledMessages (line 419) | func GetScheduledMessages(tb testing.TB, r redis.UniversalClient, qname ... function GetRetryMessages (line 426) | func GetRetryMessages(tb testing.TB, r redis.UniversalClient, qname stri... function GetArchivedMessages (line 433) | func GetArchivedMessages(tb testing.TB, r redis.UniversalClient, qname s... function GetCompletedMessages (line 440) | func GetCompletedMessages(tb testing.TB, r redis.UniversalClient, qname ... function GetScheduledEntries (line 447) | func GetScheduledEntries(tb testing.TB, r redis.UniversalClient, qname s... function GetRetryEntries (line 454) | func GetRetryEntries(tb testing.TB, r redis.UniversalClient, qname strin... function GetArchivedEntries (line 461) | func GetArchivedEntries(tb testing.TB, r redis.UniversalClient, qname st... function GetLeaseEntries (line 468) | func GetLeaseEntries(tb testing.TB, r redis.UniversalClient, qname strin... function GetCompletedEntries (line 475) | func GetCompletedEntries(tb testing.TB, r redis.UniversalClient, qname s... function GetGroupEntries (line 482) | func GetGroupEntries(tb testing.TB, r redis.UniversalClient, qname, grou... function getMessagesFromList (line 489) | func getMessagesFromList(tb testing.TB, r redis.UniversalClient, qname s... function getMessagesFromZSet (line 506) | func getMessagesFromZSet(tb testing.TB, r redis.UniversalClient, qname s... function getMessagesFromZSetWithScores (line 523) | func getMessagesFromZSetWithScores(tb testing.TB, r redis.UniversalClient, type TaskSeedData (line 541) | type TaskSeedData struct function SeedTasks (line 547) | func SeedTasks(tb testing.TB, r redis.UniversalClient, taskData []*TaskS... function SeedRedisZSets (line 573) | func SeedRedisZSets(tb testing.TB, r redis.UniversalClient, zsets map[st... function SeedRedisSets (line 584) | func SeedRedisSets(tb testing.TB, r redis.UniversalClient, sets map[stri... function SeedRedisSet (line 590) | func SeedRedisSet(tb testing.TB, r redis.UniversalClient, key string, me... function SeedRedisLists (line 598) | func SeedRedisLists(tb testing.TB, r redis.UniversalClient, lists map[st... function AssertRedisLists (line 608) | func AssertRedisLists(t *testing.T, r redis.UniversalClient, wantLists m... function AssertRedisSets (line 620) | func AssertRedisSets(t *testing.T, r redis.UniversalClient, wantSets map... function AssertRedisZSets (line 632) | func AssertRedisZSets(t *testing.T, r redis.UniversalClient, wantZSets m... FILE: internal/timeutil/timeutil.go type Clock (line 21) | type Clock interface function NewRealClock (line 25) | func NewRealClock() Clock { return &realTimeClock{} } type realTimeClock (line 27) | type realTimeClock struct method Now (line 29) | func (_ *realTimeClock) Now() time.Time { return time.Now() } type SimulatedClock (line 34) | type SimulatedClock struct method Now (line 43) | func (c *SimulatedClock) Now() time.Time { method SetTime (line 49) | func (c *SimulatedClock) SetTime(t time.Time) { method AdvanceTime (line 55) | func (c *SimulatedClock) AdvanceTime(d time.Duration) { function NewSimulatedClock (line 39) | func NewSimulatedClock(t time.Time) *SimulatedClock { FILE: internal/timeutil/timeutil_test.go function TestSimulatedClock (line 12) | func TestSimulatedClock(t *testing.T) { FILE: janitor.go type janitor (line 18) | type janitor struct method shutdown (line 54) | func (j *janitor) shutdown() { method start (line 61) | func (j *janitor) start(wg *sync.WaitGroup) { method exec (line 79) | func (j *janitor) exec() { type janitorParams (line 35) | type janitorParams struct function newJanitor (line 43) | func newJanitor(params janitorParams) *janitor { FILE: janitor_test.go function newCompletedTask (line 18) | func newCompletedTask(qname, tasktype string, payload []byte, completedA... function TestJanitor (line 24) | func TestJanitor(t *testing.T) { FILE: periodic_task_manager.go type PeriodicTaskManager (line 19) | type PeriodicTaskManager struct method Start (line 120) | func (mgr *PeriodicTaskManager) Start() error { method Shutdown (line 150) | func (mgr *PeriodicTaskManager) Shutdown() { method Run (line 158) | func (mgr *PeriodicTaskManager) Run() error { method initialSync (line 168) | func (mgr *PeriodicTaskManager) initialSync() error { method add (line 182) | func (mgr *PeriodicTaskManager) add(configs []*PeriodicTaskConfig) { method remove (line 196) | func (mgr *PeriodicTaskManager) remove(removed map[string]string) { method sync (line 207) | func (mgr *PeriodicTaskManager) sync() { method diffRemoved (line 228) | func (mgr *PeriodicTaskManager) diffRemoved(configs []*PeriodicTaskCon... method diffAdded (line 245) | func (mgr *PeriodicTaskManager) diffAdded(configs []*PeriodicTaskConfi... type PeriodicTaskManagerOpts (line 28) | type PeriodicTaskManagerOpts struct constant defaultSyncInterval (line 45) | defaultSyncInterval = 3 * time.Minute function NewPeriodicTaskManager (line 49) | func NewPeriodicTaskManager(opts PeriodicTaskManagerOpts) (*PeriodicTask... type PeriodicTaskConfigProvider (line 79) | type PeriodicTaskConfigProvider interface type PeriodicTaskConfig (line 84) | type PeriodicTaskConfig struct method hash (line 90) | func (c *PeriodicTaskConfig) hash() string { function validatePeriodicTaskConfig (line 103) | func validatePeriodicTaskConfig(c *PeriodicTaskConfig) error { FILE: periodic_task_manager_test.go type FakeConfigProvider (line 17) | type FakeConfigProvider struct method SetConfigs (line 22) | func (p *FakeConfigProvider) SetConfigs(cfgs []*PeriodicTaskConfig) { method GetConfigs (line 28) | func (p *FakeConfigProvider) GetConfigs() ([]*PeriodicTaskConfig, erro... function TestNewPeriodicTaskManager (line 34) | func TestNewPeriodicTaskManager(t *testing.T) { function TestPeriodicTaskConfigHash (line 107) | func TestPeriodicTaskConfigHash(t *testing.T) { function TestPeriodicTaskManager (line 252) | func TestPeriodicTaskManager(t *testing.T) { function extractCronEntries (line 319) | func extractCronEntries(s *Scheduler) []*cronEntry { type cronEntry (line 337) | type cronEntry struct FILE: processor.go type processor (line 27) | type processor struct method stop (line 127) | func (p *processor) stop() { method shutdown (line 139) | func (p *processor) shutdown() { method start (line 152) | func (p *processor) start(wg *sync.WaitGroup) { method exec (line 170) | func (p *processor) exec() { method requeue (line 261) | func (p *processor) requeue(l *base.Lease, msg *base.TaskMessage) { method handleSucceededMessage (line 276) | func (p *processor) handleSucceededMessage(l *base.Lease, msg *base.Ta... method markAsComplete (line 284) | func (p *processor) markAsComplete(l *base.Lease, msg *base.TaskMessag... method markAsDone (line 306) | func (p *processor) markAsDone(l *base.Lease, msg *base.TaskMessage) { method handleFailedMessage (line 335) | func (p *processor) handleFailedMessage(ctx context.Context, l *base.L... method retry (line 351) | func (p *processor) retry(l *base.Lease, msg *base.TaskMessage, e erro... method archive (line 374) | func (p *processor) archive(l *base.Lease, msg *base.TaskMessage, e er... method queues (line 400) | func (p *processor) queues() []string { method perform (line 424) | func (p *processor) perform(ctx context.Context, task *Task) (err erro... method computeDeadline (line 524) | func (p *processor) computeDeadline(msg *base.TaskMessage) time.Time { type processorParams (line 75) | type processorParams struct function newProcessor (line 94) | func newProcessor(params processorParams) *processor { function uniq (line 451) | func uniq(names []string, l int) []string { function sortByPriority (line 468) | func sortByPriority(qcfg map[string]int) []string { type queue (line 481) | type queue struct type byPriority (line 486) | type byPriority method Len (line 488) | func (x byPriority) Len() int { return len(x) } method Less (line 489) | func (x byPriority) Less(i, j int) bool { return x[i].priority < x[j].... method Swap (line 490) | func (x byPriority) Swap(i, j int) { x[i], x[j] = x[j], x[i] } function normalizeQueues (line 493) | func normalizeQueues(queues map[string]int) map[string]int { function gcd (line 506) | func gcd(xs ...int) int { function IsPanicError (line 539) | func IsPanicError(err error) bool { FILE: processor_test.go function fakeHeartbeater (line 34) | func fakeHeartbeater(starting <-chan *workerInfo, finished <-chan *base.... function fakeSyncer (line 46) | func fakeSyncer(syncCh <-chan *syncRequest, done <-chan struct{}) { function newProcessorForTest (line 57) | func newProcessorForTest(t *testing.T, r *rdb.RDB, h Handler) *processor { function TestProcessorSuccessWithSingleQueue (line 86) | func TestProcessorSuccessWithSingleQueue(t *testing.T) { function TestProcessorSuccessWithMultipleQueues (line 155) | func TestProcessorSuccessWithMultipleQueues(t *testing.T) { function TestProcessTasksWithLargeNumberInPayload (line 229) | func TestProcessTasksWithLargeNumberInPayload(t *testing.T) { function TestProcessorRetry (line 285) | func TestProcessorRetry(t *testing.T) { function TestProcessorMarkAsComplete (line 441) | func TestProcessorMarkAsComplete(t *testing.T) { function TestProcessorWithExpiredLease (line 518) | func TestProcessorWithExpiredLease(t *testing.T) { function TestProcessorQueues (line 615) | func TestProcessorQueues(t *testing.T) { function TestProcessorWithStrictPriority (line 655) | func TestProcessorWithStrictPriority(t *testing.T) { function TestProcessorPerform (line 760) | func TestProcessorPerform(t *testing.T) { function TestGCD (line 810) | func TestGCD(t *testing.T) { function TestNormalizeQueues (line 832) | func TestNormalizeQueues(t *testing.T) { function TestProcessorComputeDeadline (line 890) | func TestProcessorComputeDeadline(t *testing.T) { function TestReturnPanicError (line 956) | func TestReturnPanicError(t *testing.T) { FILE: recoverer.go type recoverer (line 17) | type recoverer struct method shutdown (line 54) | func (r *recoverer) shutdown() { method start (line 60) | func (r *recoverer) start(wg *sync.WaitGroup) { method recover (line 84) | func (r *recoverer) recover() { method recoverLeaseExpiredTasks (line 89) | func (r *recoverer) recoverLeaseExpiredTasks() { method recoverStaleAggregationSets (line 106) | func (r *recoverer) recoverStaleAggregationSets() { method retry (line 114) | func (r *recoverer) retry(msg *base.TaskMessage, err error) { method archive (line 122) | func (r *recoverer) archive(msg *base.TaskMessage, err error) { type recovererParams (line 33) | type recovererParams struct function newRecoverer (line 42) | func newRecoverer(params recovererParams) *recoverer { FILE: recoverer_test.go function TestRecoverer (line 18) | func TestRecoverer(t *testing.T) { FILE: scheduler.go type Scheduler (line 24) | type Scheduler struct method Register (line 208) | func (s *Scheduler) Register(cronspec string, task *Task, opts ...Opti... method Unregister (line 234) | func (s *Scheduler) Unregister(entryID string) error { method Run (line 248) | func (s *Scheduler) Run() error { method Start (line 259) | func (s *Scheduler) Start() error { method start (line 273) | func (s *Scheduler) start() error { method Shutdown (line 287) | func (s *Scheduler) Shutdown() { method runHeartbeater (line 310) | func (s *Scheduler) runHeartbeater() { method beat (line 329) | func (s *Scheduler) beat() { method clearHistory (line 357) | func (s *Scheduler) clearHistory() { method Ping (line 367) | func (s *Scheduler) Ping() error { constant defaultHeartbeatInterval (line 49) | defaultHeartbeatInterval = 10 * time.Second function NewScheduler (line 53) | func NewScheduler(r RedisConnOpt, opts *SchedulerOpts) *Scheduler { function NewSchedulerFromRedisClient (line 72) | func NewSchedulerFromRedisClient(c redis.UniversalClient, opts *Schedule... function newScheduler (line 81) | func newScheduler(opts *SchedulerOpts) *Scheduler { function generateSchedulerID (line 118) | func generateSchedulerID() string { type SchedulerOpts (line 127) | type SchedulerOpts struct type enqueueJob (line 167) | type enqueueJob struct method Run (line 181) | func (j *enqueueJob) Run() { function stringifyOptions (line 349) | func stringifyOptions(opts []Option) []string { FILE: scheduler_test.go function TestSchedulerRegister (line 19) | func TestSchedulerRegister(t *testing.T) { function TestSchedulerWhenRedisDown (line 104) | func TestSchedulerWhenRedisDown(t *testing.T) { function TestSchedulerUnregister (line 141) | func TestSchedulerUnregister(t *testing.T) { function TestSchedulerPostAndPreEnqueueHandler (line 183) | func TestSchedulerPostAndPreEnqueueHandler(t *testing.T) { FILE: servemux.go type ServeMux (line 29) | type ServeMux struct method ProcessTask (line 53) | func (mux *ServeMux) ProcessTask(ctx context.Context, task *Task) error { method Handler (line 65) | func (mux *ServeMux) Handler(t *Task) (h Handler, pattern string) { method match (line 81) | func (mux *ServeMux) match(typename string) (h Handler, pattern string) { method Handle (line 101) | func (mux *ServeMux) Handle(pattern string, handler Handler) { method HandleFunc (line 139) | func (mux *ServeMux) HandleFunc(pattern string, handler func(context.C... method Use (line 148) | func (mux *ServeMux) Use(mws ...MiddlewareFunc) { type muxEntry (line 36) | type muxEntry struct type MiddlewareFunc (line 44) | type MiddlewareFunc function NewServeMux (line 47) | func NewServeMux() *ServeMux { function appendSorted (line 123) | func appendSorted(es []muxEntry, e muxEntry) []muxEntry { function NotFound (line 155) | func NotFound(ctx context.Context, task *Task) error { function NotFoundHandler (line 160) | func NotFoundHandler() Handler { return HandlerFunc(NotFound) } FILE: servemux_test.go function makeFakeHandler (line 19) | func makeFakeHandler(identity string) Handler { function makeFakeMiddleware (line 28) | func makeFakeMiddleware(identity string) MiddlewareFunc { function TestServeMux (line 56) | func TestServeMux(t *testing.T) { function TestServeMuxRegisterNilHandler (line 76) | func TestServeMuxRegisterNilHandler(t *testing.T) { function TestServeMuxRegisterEmptyPattern (line 87) | func TestServeMuxRegisterEmptyPattern(t *testing.T) { function TestServeMuxRegisterDuplicatePattern (line 98) | func TestServeMuxRegisterDuplicatePattern(t *testing.T) { function TestServeMuxNotFound (line 117) | func TestServeMuxNotFound(t *testing.T) { function TestServeMuxMiddlewares (line 142) | func TestServeMuxMiddlewares(t *testing.T) { FILE: server.go type Server (line 36) | type Server struct method Run (line 663) | func (srv *Server) Run(handler Handler) error { method Start (line 680) | func (srv *Server) Start(handler Handler) error { method start (line 705) | func (srv *Server) start() error { method Shutdown (line 724) | func (srv *Server) Shutdown() { method Stop (line 761) | func (srv *Server) Stop() { method Ping (line 779) | func (srv *Server) Ping() error { type serverState (line 59) | type serverState struct type serverStateValue (line 64) | type serverStateValue method String (line 89) | func (s serverStateValue) String() string { constant srvStateNew (line 70) | srvStateNew serverStateValue = iota constant srvStateActive (line 73) | srvStateActive constant srvStateStopped (line 76) | srvStateStopped constant srvStateClosed (line 79) | srvStateClosed type Config (line 97) | type Config struct type GroupAggregator (line 258) | type GroupAggregator interface type GroupAggregatorFunc (line 270) | type GroupAggregatorFunc method Aggregate (line 273) | func (fn GroupAggregatorFunc) Aggregate(group string, tasks []*Task) *... type ErrorHandler (line 278) | type ErrorHandler interface type ErrorHandlerFunc (line 284) | type ErrorHandlerFunc method HandleError (line 287) | func (fn ErrorHandlerFunc) HandleError(ctx context.Context, task *Task... type RetryDelayFunc (line 297) | type RetryDelayFunc type Logger (line 300) | type Logger interface type LogLevel (line 321) | type LogLevel method String (line 348) | func (l *LogLevel) String() string { method Set (line 365) | func (l *LogLevel) Set(val string) error { constant level_unspecified (line 325) | level_unspecified LogLevel = iota constant DebugLevel (line 329) | DebugLevel constant InfoLevel (line 332) | InfoLevel constant WarnLevel (line 336) | WarnLevel constant ErrorLevel (line 340) | ErrorLevel constant FatalLevel (line 344) | FatalLevel function toInternalLogLevel (line 383) | func toInternalLogLevel(l LogLevel) log.Level { function DefaultRetryDelayFunc (line 401) | func DefaultRetryDelayFunc(n int, e error, t *Task) time.Duration { function defaultIsFailureFunc (line 407) | func defaultIsFailureFunc(err error) bool { return err != nil } constant defaultTaskCheckInterval (line 414) | defaultTaskCheckInterval = 1 * time.Second constant defaultShutdownTimeout (line 416) | defaultShutdownTimeout = 8 * time.Second constant defaultHealthCheckInterval (line 418) | defaultHealthCheckInterval = 15 * time.Second constant defaultDelayedTaskCheckInterval (line 420) | defaultDelayedTaskCheckInterval = 5 * time.Second constant defaultGroupGracePeriod (line 422) | defaultGroupGracePeriod = 1 * time.Minute constant defaultJanitorInterval (line 424) | defaultJanitorInterval = 8 * time.Second constant defaultJanitorBatchSize (line 426) | defaultJanitorBatchSize = 100 function NewServer (line 431) | func NewServer(r RedisConnOpt, cfg Config) *Server { function NewServerFromRedisClient (line 444) | func NewServerFromRedisClient(c redis.UniversalClient, cfg Config) *Serv... type Handler (line 638) | type Handler interface type HandlerFunc (line 646) | type HandlerFunc method ProcessTask (line 649) | func (fn HandlerFunc) ProcessTask(ctx context.Context, task *Task) err... FILE: server_test.go function testServer (line 22) | func testServer(t *testing.T, c *Client, srv *Server) { function TestServer (line 46) | func TestServer(t *testing.T) { function TestServerFromRedisClient (line 62) | func TestServerFromRedisClient(t *testing.T) { function TestServerRun (line 83) | func TestServerRun(t *testing.T) { function TestServerErrServerClosed (line 112) | func TestServerErrServerClosed(t *testing.T) { function TestServerErrNilHandler (line 125) | func TestServerErrNilHandler(t *testing.T) { function TestServerErrServerRunning (line 134) | func TestServerErrServerRunning(t *testing.T) { function TestServerWithRedisDown (line 147) | func TestServerWithRedisDown(t *testing.T) { function TestServerWithFlakyBroker (line 179) | func TestServerWithFlakyBroker(t *testing.T) { function TestLogLevel (line 240) | func TestLogLevel(t *testing.T) { FILE: signals_unix.go method waitForSignals (line 16) | func (srv *Server) waitForSignals() { method waitForSignals (line 34) | func (s *Scheduler) waitForSignals() { FILE: signals_windows.go method waitForSignals (line 17) | func (srv *Server) waitForSignals() { method waitForSignals (line 24) | func (s *Scheduler) waitForSignals() { FILE: subscriber.go type subscriber (line 16) | type subscriber struct method shutdown (line 46) | func (s *subscriber) shutdown() { method start (line 52) | func (s *subscriber) start(wg *sync.WaitGroup) { type subscriberParams (line 30) | type subscriberParams struct function newSubscriber (line 36) | func newSubscriber(params subscriberParams) *subscriber { FILE: subscriber_test.go function TestSubscriber (line 17) | func TestSubscriber(t *testing.T) { function TestSubscriberWithRedisDown (line 73) | func TestSubscriberWithRedisDown(t *testing.T) { FILE: syncer.go type syncer (line 16) | type syncer struct method shutdown (line 49) | func (s *syncer) shutdown() { method start (line 55) | func (s *syncer) start(wg *sync.WaitGroup) { type syncRequest (line 28) | type syncRequest struct type syncerParams (line 34) | type syncerParams struct function newSyncer (line 40) | func newSyncer(params syncerParams) *syncer { FILE: syncer_test.go function TestSyncer (line 19) | func TestSyncer(t *testing.T) { function TestSyncerRetry (line 59) | func TestSyncerRetry(t *testing.T) { function TestSyncerDropsStaleRequests (line 106) | func TestSyncerDropsStaleRequests(t *testing.T) { FILE: tools/asynq/cmd/cron.go function init (line 19) | func init() { function cronList (line 54) | func cronList(cmd *cobra.Command, args []string) { function nextEnqueue (line 84) | func nextEnqueue(nextEnqueueAt time.Time) string { function prevEnqueue (line 93) | func prevEnqueue(prevEnqueuedAt time.Time) string { function cronHistory (line 100) | func cronHistory(cmd *cobra.Command, args []string) { FILE: tools/asynq/cmd/dash.go function init (line 21) | func init() { FILE: tools/asynq/cmd/dash/dash.go type viewType (line 19) | type viewType constant viewTypeQueues (line 22) | viewTypeQueues viewType = iota constant viewTypeQueueDetails (line 23) | viewTypeQueueDetails constant viewTypeHelp (line 24) | viewTypeHelp type State (line 28) | type State struct method DebugString (line 51) | func (s *State) DebugString() string { type Options (line 91) | type Options struct function Run (line 97) | func Run(opts Options) { FILE: tools/asynq/cmd/dash/draw.go type drawer (line 36) | type drawer interface type dashDrawer (line 40) | type dashDrawer struct method Draw (line 45) | func (dd *dashDrawer) Draw(state *State) { function drawQueueSizeGraphs (line 80) | func drawQueueSizeGraphs(d *ScreenDrawer, state *State) { function drawFooter (line 135) | func drawFooter(d *ScreenDrawer, state *State) { function maxwidth (line 153) | func maxwidth(names []string) int { function rpad (line 164) | func rpad(s string, padding int) string { function lpad (line 171) | func lpad(s string, padding int) string { function byteCount (line 177) | func byteCount(b int64) string { function formatQueueState (line 203) | func formatQueueState(q *asynq.QueueInfo) string { function formatErrorRate (line 210) | func formatErrorRate(processed, failed int) string { function formatNextProcessTime (line 217) | func formatNextProcessTime(t time.Time) string { function formatPastTime (line 225) | func formatPastTime(t time.Time) string { function drawQueueTable (line 233) | func drawQueueTable(d *ScreenDrawer, style tcell.Style, state *State) { function drawQueueSummary (line 237) | func drawQueueSummary(d *ScreenDrawer, state *State) { function groupPageSize (line 254) | func groupPageSize(s tcell.Screen) int { function taskPageSize (line 260) | func taskPageSize(s tcell.Screen) int { function shouldShowGroupTable (line 265) | func shouldShowGroupTable(state *State) bool { function getTaskTableColumnConfig (line 269) | func getTaskTableColumnConfig(taskState asynq.TaskState) []*columnConfig... function drawTaskTable (line 350) | func drawTaskTable(d *ScreenDrawer, state *State) { function isNextTaskPageAvailable (line 382) | func isNextTaskPageAvailable(s tcell.Screen, state *State) bool { function drawGroupTable (line 388) | func drawGroupTable(d *ScreenDrawer, state *State) { type number (line 416) | type number interface function min (line 421) | func min[V number](x, y V) V { function nextTaskState (line 439) | func nextTaskState(current asynq.TaskState) asynq.TaskState { function prevTaskState (line 452) | func prevTaskState(current asynq.TaskState) asynq.TaskState { function getTaskCount (line 465) | func getTaskCount(queue *asynq.QueueInfo, taskState asynq.TaskState) int { function drawTaskStateBreakdown (line 485) | func drawTaskStateBreakdown(d *ScreenDrawer, style tcell.Style, state *S... function drawTaskModal (line 498) | func drawTaskModal(d *ScreenDrawer, state *State) { function isPrintable (line 575) | func isPrintable(data []byte) bool { function formatByteSlice (line 591) | func formatByteSlice(data []byte) string { type modalRowDrawer (line 601) | type modalRowDrawer struct method Print (line 608) | func (d *modalRowDrawer) Print(s string, style tcell.Style) { function withModal (line 619) | func withModal(d *ScreenDrawer, rowPrintFns []func(d *modalRowDrawer)) { function adjustWidth (line 657) | func adjustWidth(s string, width int) string { function truncate (line 669) | func truncate(s string, max int) string { function drawDebugInfo (line 676) | func drawDebugInfo(d *ScreenDrawer, state *State) { function drawHelp (line 680) | func drawHelp(d *ScreenDrawer) { FILE: tools/asynq/cmd/dash/draw_test.go function TestTruncate (line 9) | func TestTruncate(t *testing.T) { FILE: tools/asynq/cmd/dash/fetch.go type fetcher (line 14) | type fetcher interface type dataFetcher (line 19) | type dataFetcher struct method Fetch (line 32) | func (f *dataFetcher) Fetch(state *State) { method fetchQueues (line 51) | func (f *dataFetcher) fetchQueues() { method fetchGroups (line 89) | func (f *dataFetcher) fetchGroups(qname string) { method fetchAggregatingTasks (line 109) | func (f *dataFetcher) fetchAggregatingTasks(qname, group string, pageS... method fetchTasks (line 130) | func (f *dataFetcher) fetchTasks(qname string, taskState asynq.TaskSta... method fetchTaskInfo (line 169) | func (f *dataFetcher) fetchTaskInfo(qname, taskID string) { function fetchQueues (line 61) | func fetchQueues(i *asynq.Inspector, queuesCh chan<- []*asynq.QueueInfo,... function fetchQueueInfo (line 80) | func fetchQueueInfo(i *asynq.Inspector, qname string, queueCh chan<- *as... function fetchGroups (line 100) | func fetchGroups(i *asynq.Inspector, qname string, groupsCh chan<- []*as... function fetchAggregatingTasks (line 120) | func fetchAggregatingTasks(i *asynq.Inspector, qname, group string, page... function fetchTasks (line 141) | func fetchTasks(i *asynq.Inspector, qname string, taskState asynq.TaskSt... function fetchTaskInfo (line 178) | func fetchTaskInfo(i *asynq.Inspector, qname, taskID string, taskCh chan... FILE: tools/asynq/cmd/dash/key_event.go type keyEventHandler (line 17) | type keyEventHandler struct method quit (line 29) | func (h *keyEventHandler) quit() { method HandleKeyEvent (line 35) | func (h *keyEventHandler) HandleKeyEvent(ev *tcell.EventKey) { method goBack (line 61) | func (h *keyEventHandler) goBack() { method handleDownKey (line 89) | func (h *keyEventHandler) handleDownKey() { method downKeyQueues (line 98) | func (h *keyEventHandler) downKeyQueues() { method downKeyQueueDetails (line 107) | func (h *keyEventHandler) downKeyQueueDetails() { method handleUpKey (line 125) | func (h *keyEventHandler) handleUpKey() { method upKeyQueues (line 134) | func (h *keyEventHandler) upKeyQueues() { method upKeyQueueDetails (line 144) | func (h *keyEventHandler) upKeyQueueDetails() { method handleEnterKey (line 162) | func (h *keyEventHandler) handleEnterKey() { method resetTicker (line 171) | func (h *keyEventHandler) resetTicker() { method enterKeyQueues (line 175) | func (h *keyEventHandler) enterKeyQueues() { method enterKeyQueueDetails (line 193) | func (h *keyEventHandler) enterKeyQueueDetails() { method handleLeftKey (line 217) | func (h *keyEventHandler) handleLeftKey() { method handleRightKey (line 235) | func (h *keyEventHandler) handleRightKey() { method nextPage (line 253) | func (h *keyEventHandler) nextPage() { method prevPage (line 282) | func (h *keyEventHandler) prevPage() { method showHelp (line 307) | func (h *keyEventHandler) showHelp() { FILE: tools/asynq/cmd/dash/key_event_test.go function makeKeyEventHandler (line 16) | func makeKeyEventHandler(t *testing.T, state *State) *keyEventHandler { type keyEventHandlerTest (line 30) | type keyEventHandlerTest struct function TestKeyEventHandler (line 37) | func TestKeyEventHandler(t *testing.T) { type fakeFetcher (line 228) | type fakeFetcher struct method Fetch (line 230) | func (f *fakeFetcher) Fetch(s *State) {} type fakeDrawer (line 232) | type fakeDrawer struct method Draw (line 234) | func (d *fakeDrawer) Draw(s *State) {} FILE: tools/asynq/cmd/dash/screen_drawer.go type ScreenDrawer (line 25) | type ScreenDrawer struct method Print (line 33) | func (d *ScreenDrawer) Print(s string, style tcell.Style) { method Println (line 37) | func (d *ScreenDrawer) Println(s string, style tcell.Style) { method FillLine (line 44) | func (d *ScreenDrawer) FillLine(r rune, style tcell.Style) { method FillUntil (line 55) | func (d *ScreenDrawer) FillUntil(r rune, style tcell.Style, limit int) { method NL (line 64) | func (d *ScreenDrawer) NL() { method Screen (line 69) | func (d *ScreenDrawer) Screen() tcell.Screen { method Goto (line 74) | func (d *ScreenDrawer) Goto(x, y int) { method GoToBottom (line 80) | func (d *ScreenDrawer) GoToBottom() { function NewScreenDrawer (line 29) | func NewScreenDrawer(s tcell.Screen) *ScreenDrawer { type LineDrawer (line 86) | type LineDrawer struct method Draw (line 96) | func (d *LineDrawer) Draw(s string, style tcell.Style) { function NewLineDrawer (line 92) | func NewLineDrawer(row int, s tcell.Screen) *LineDrawer { FILE: tools/asynq/cmd/dash/table.go type columnAlignment (line 12) | type columnAlignment constant alignRight (line 15) | alignRight columnAlignment = iota constant alignLeft (line 16) | alignLeft type columnConfig (line 19) | type columnConfig struct type column (line 25) | type column struct function drawTable (line 31) | func drawTable[V any](d *ScreenDrawer, style tcell.Style, configs []*col... FILE: tools/asynq/cmd/group.go function init (line 15) | func init() { function groupLists (line 37) | func groupLists(cmd *cobra.Command, args []string) { FILE: tools/asynq/cmd/queue.go constant separator (line 19) | separator = "=================================================" function init (line 21) | func init() { function queueList (line 106) | func queueList(cmd *cobra.Command, args []string) { function queueInspect (line 153) | func queueInspect(cmd *cobra.Command, args []string) { function printQueueInfo (line 168) | func printQueueInfo(info *asynq.QueueInfo) { function queueHistory (line 198) | func queueHistory(cmd *cobra.Command, args []string) { function printDailyStats (line 219) | func printDailyStats(stats []*asynq.DailyStats) { function queuePause (line 236) | func queuePause(cmd *cobra.Command, args []string) { function queueUnpause (line 248) | func queueUnpause(cmd *cobra.Command, args []string) { function queueRemove (line 260) | func queueRemove(cmd *cobra.Command, args []string) { FILE: tools/asynq/cmd/root.go function Execute (line 81) | func Execute() { function isRootCmd (line 88) | func isRootCmd(cmd *cobra.Command) bool { type displayLine (line 94) | type displayLine struct method String (line 100) | func (l *displayLine) String() string { type displayLines (line 104) | type displayLines method String (line 106) | func (dls displayLines) String() string { function capitalize (line 115) | func capitalize(s string) string { function rootHelpFunc (line 126) | func rootHelpFunc(cmd *cobra.Command, args []string) { function rootUsageFunc (line 203) | func rootUsageFunc(cmd *cobra.Command) error { function printSubcommandSuggestions (line 230) | func printSubcommandSuggestions(cmd *cobra.Command, arg string) { function adjustPadding (line 247) | func adjustPadding(lines ...*displayLine) { function rpad (line 261) | func rpad(s string, padding int) string { function lpad (line 267) | func lpad(s string, padding int) string { function indent (line 273) | func indent(text string, space int) string { function dedent (line 291) | func dedent(text string) string { function init (line 301) | func init() { function initConfig (line 337) | func initConfig() { function createRDB (line 363) | func createRDB() *rdb.RDB { function createClient (line 386) | func createClient() *asynq.Client { function createInspector (line 391) | func createInspector() *asynq.Inspector { function getRedisConnOpt (line 395) | func getRedisConnOpt() asynq.RedisConnOpt { function getTLSConfig (line 414) | func getTLSConfig() *tls.Config { function printTable (line 449) | func printTable(cols []string, printRows func(w io.Writer, tmpl string)) { function sprintBytes (line 466) | func sprintBytes(payload []byte) string { function isPrintable (line 473) | func isPrintable(data []byte) bool { function getDuration (line 490) | func getDuration(cmd *cobra.Command, arg string) time.Duration { function getTime (line 507) | func getTime(cmd *cobra.Command, arg string) time.Time { FILE: tools/asynq/cmd/server.go function init (line 19) | func init() { function serverList (line 50) | func serverList(cmd *cobra.Command, args []string) { function formatQueues (line 85) | func formatQueues(qmap map[string]int) string { function timeAgo (line 116) | func timeAgo(since time.Time) string { FILE: tools/asynq/cmd/stats.go function init (line 43) | func init() { type AggregateStats (line 58) | type AggregateStats struct type FullStats (line 71) | type FullStats struct function stats (line 77) | func stats(cmd *cobra.Command, args []string) { function printStatsByState (line 156) | func printStatsByState(s *AggregateStats) { function numDigits (line 168) | func numDigits(n int) int { function maxWidthOf (line 173) | func maxWidthOf(vals ...int) int { function maxInt (line 183) | func maxInt(a, b int) int { function printStatsByQueue (line 187) | func printStatsByQueue(stats []*rdb.Stats) { function queueTitle (line 209) | func queueTitle(s *rdb.Stats) string { function printSuccessFailureStats (line 218) | func printSuccessFailureStats(s *AggregateStats) { function printInfo (line 233) | func printInfo(info map[string]string) { function printClusterInfo (line 248) | func printClusterInfo(info map[string]string) { function toInterfaceSlice (line 261) | func toInterfaceSlice(strs []string) []interface{} { FILE: tools/asynq/cmd/task.go function init (line 19) | func init() { function taskList (line 212) | func taskList(cmd *cobra.Command, args []string) { function listActiveTasks (line 264) | func listActiveTasks(qname string, pageNum, pageSize int) { function listPendingTasks (line 285) | func listPendingTasks(qname string, pageNum, pageSize int) { function listScheduledTasks (line 306) | func listScheduledTasks(qname string, pageNum, pageSize int) { function formatProcessAt (line 330) | func formatProcessAt(processAt time.Time) string { function listRetryTasks (line 338) | func listRetryTasks(qname string, pageNum, pageSize int) { function listArchivedTasks (line 360) | func listArchivedTasks(qname string, pageNum, pageSize int) { function listCompletedTasks (line 380) | func listCompletedTasks(qname string, pageNum, pageSize int) { function listAggregatingTasks (line 400) | func listAggregatingTasks(qname, group string, pageNum, pageSize int) { function taskCancel (line 421) | func taskCancel(cmd *cobra.Command, args []string) { function taskInspect (line 432) | func taskInspect(cmd *cobra.Command, args []string) { function printTaskInfo (line 453) | func printTaskInfo(info *asynq.TaskInfo) { function formatNextProcessAt (line 471) | func formatNextProcessAt(processAt time.Time) string { function formatPastTime (line 482) | func formatPastTime(t time.Time) string { function taskArchive (line 489) | func taskArchive(cmd *cobra.Command, args []string) { function taskDelete (line 510) | func taskDelete(cmd *cobra.Command, args []string) { function taskRun (line 531) | func taskRun(cmd *cobra.Command, args []string) { function taskEnqueue (line 552) | func taskEnqueue(cmd *cobra.Command, args []string) { function taskArchiveAll (line 641) | func taskArchiveAll(cmd *cobra.Command, args []string) { function taskDeleteAll (line 684) | func taskDeleteAll(cmd *cobra.Command, args []string) { function taskRunAll (line 731) | func taskRunAll(cmd *cobra.Command, args []string) { FILE: tools/asynq/main.go function main (line 9) | func main() { FILE: tools/metrics_exporter/main.go function init (line 26) | func init() { function main (line 34) | func main() { FILE: x/metrics/metrics.go constant namespace (line 13) | namespace = "asynq" type QueueMetricsCollector (line 19) | type QueueMetricsCollector struct method collectQueueInfo (line 25) | func (qmc *QueueMetricsCollector) collectQueueInfo() ([]*asynq.QueueIn... method Describe (line 86) | func (qmc *QueueMetricsCollector) Describe(ch chan<- *prometheus.Desc) { method Collect (line 90) | func (qmc *QueueMetricsCollector) Collect(ch chan<- prometheus.Metric) { function NewQueueMetricsCollector (line 188) | func NewQueueMetricsCollector(inspector *asynq.Inspector) *QueueMetricsC... FILE: x/rate/example_test.go type RateLimitError (line 12) | type RateLimitError struct method Error (line 16) | func (e *RateLimitError) Error() string { function ExampleNewSemaphore (line 20) | func ExampleNewSemaphore() { FILE: x/rate/semaphore.go function NewSemaphore (line 16) | func NewSemaphore(rco asynq.RedisConnOpt, scope string, maxTokens int) *... type Semaphore (line 38) | type Semaphore struct method Acquire (line 68) | func (s *Semaphore) Acquire(ctx context.Context) (bool, error) { method Release (line 89) | func (s *Semaphore) Release(ctx context.Context) error { method Close (line 108) | func (s *Semaphore) Close() error { function semaphoreKey (line 112) | func semaphoreKey(scope string) string { FILE: x/rate/semaphore_test.go function init (line 26) | func init() { function TestNewSemaphore (line 33) | func TestNewSemaphore(t *testing.T) { function TestNewSemaphore_Acquire (line 79) | func TestNewSemaphore_Acquire(t *testing.T) { function TestNewSemaphore_Acquire_Error (line 147) | func TestNewSemaphore_Acquire_Error(t *testing.T) { function TestNewSemaphore_Acquire_StaleToken (line 205) | func TestNewSemaphore_Acquire_StaleToken(t *testing.T) { function TestNewSemaphore_Release (line 238) | func TestNewSemaphore_Release(t *testing.T) { function TestNewSemaphore_Release_Error (line 316) | func TestNewSemaphore_Release_Error(t *testing.T) { function getRedisConnOpt (line 386) | func getRedisConnOpt(tb testing.TB) asynq.RedisConnOpt { type badConnOpt (line 403) | type badConnOpt struct method MakeRedisClient (line 406) | func (b badConnOpt) MakeRedisClient() interface{} {