Documentation
¶
Index ¶
Constants ¶
View Source
const ( AsyncInspectorKey contextKey = "asyncInspector" AsyncClientKey contextKey = "asyncClient" )
Variables ¶
This section is empty.
Functions ¶
func NewInvokeCmd ¶
func NewQueuesCmd ¶
func NewStatsCmd ¶
Types ¶
type Inspector ¶
type Inspector interface {
Queues() ([]string, error)
GetQueueInfo(queue string) (*asynq.QueueInfo, error)
History(queue string, days int) ([]*asynq.DailyStats, error)
ListPendingTasks(queue string, opts ...asynq.ListOption) ([]*asynq.TaskInfo, error)
ListActiveTasks(queue string, opts ...asynq.ListOption) ([]*asynq.TaskInfo, error)
ListCompletedTasks(queue string, opts ...asynq.ListOption) ([]*asynq.TaskInfo, error)
ListArchivedTasks(queue string, opts ...asynq.ListOption) ([]*asynq.TaskInfo, error)
}
Click to show internal directories.
Click to hide internal directories.