cmd

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient added in v1.4.0

func WithClient(ctx server.Cmd, span string, fn func(context.Context, *httpclient.Client) error) (err error)

WithClient creates a pgqueue HTTP client from the command context and calls fn with it

Types

type ClientCommands added in v1.4.0

type ClientCommands struct {
	QueueCommands
	TickerCommands
	TaskCommands
}

type Flags added in v1.4.0

type Flags struct {
}

func (Flags) WithManager added in v1.4.0

func (flags Flags) WithManager(ctx context.Context, conn pg.PoolConn, fn func(*pgqueue.Manager) error, opts ...pgqueue.Opt) error

type QueueCommands added in v1.4.0

type QueueCommands struct {
	QueueList QueueListCmd `cmd:"" name:"queues" help:"List the queues." group:"TASK QUEUES"`
}

type QueueListCmd added in v1.4.0

type QueueListCmd struct {
	schema.QueueListRequest
}

func (*QueueListCmd) Run added in v1.4.0

func (cmd *QueueListCmd) Run(ctx server.Cmd) error

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"`
}

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"`
}

func (*TaskListCmd) Run added in v1.4.0

func (cmd *TaskListCmd) Run(ctx server.Cmd) error

type TickerCommands added in v1.4.0

type TickerCommands struct {
	TickerList TickerListCmd `cmd:"" name:"tickers" help:"List the tickers." group:"TASK QUEUES"`
}

type TickerListCmd added in v1.4.0

type TickerListCmd struct {
	schema.TickerListRequest
}

func (*TickerListCmd) Run added in v1.4.0

func (cmd *TickerListCmd) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL