Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientCommands ¶ added in v1.4.0
type ClientCommands struct {
QueueCommands
TickerCommands
TaskCommands
}
type QueueCommands ¶ added in v1.4.0
type QueueCommands struct {
QueueList QueueListCmd `cmd:"" name:"queues" help:"List the queues." group:"TASK QUEUES"`
QueueGet QueueGetCmd `cmd:"" name:"queue" help:"Get a queue." group:"TASK QUEUES"`
}
type QueueGetCmd ¶ added in v1.4.3
type QueueGetCmd struct {
Name string `arg:"" help:"Queue name"`
}
type QueueListCmd ¶ added in v1.4.0
type QueueListCmd struct {
schema.QueueListRequest
}
type TaskCommands ¶ added in v1.4.0
type TaskCommands struct {
TaskList TaskListCmd `cmd:"" name:"tasks" help:"List the tasks, optionally in some queues, or with a status." group:"TASK QUEUES"`
TaskGet TaskGetCmd `cmd:"" name:"task" help:"Get a task, with its status, without retaining it." group:"TASK QUEUES"`
}
type TaskGetCmd ¶ added in v1.4.3
type TaskGetCmd struct {
Id uint64 `arg:"" help:"Task id"`
}
type TaskListCmd ¶ added in v1.4.0
type TaskListCmd struct {
pg.OffsetLimit `embed:""`
Queue []string `name:"queue" help:"Only list the tasks in these queues." optional:""`
Status string `name:"status" help:"Only list the tasks with this status." enum:"any,new,running,retry,expired,failed,done" default:"any"`
}
type TickerCommands ¶ added in v1.4.0
type TickerCommands struct {
TickerList TickerListCmd `cmd:"" name:"tickers" help:"List the tickers." group:"TASK QUEUES"`
TickerGet TickerGetCmd `cmd:"" name:"ticker" help:"Get a ticker." group:"TASK QUEUES"`
}
type TickerGetCmd ¶ added in v1.4.3
type TickerGetCmd struct {
Name string `arg:"" help:"Ticker name"`
}
type TickerListCmd ¶ added in v1.4.0
type TickerListCmd struct {
schema.TickerListRequest
}
Click to show internal directories.
Click to hide internal directories.