MCPcopy Index your code
hub / github.com/riverqueue/river / QueueList

Method QueueList

client.go:2626–2640  ·  view source on GitHub ↗

QueueList returns a list of all queues that are currently active or were recently active. Limit and offset can be used to paginate the results. The provided context is used for the underlying Postgres query and can be used to cancel the operation or apply a timeout. params := river.NewQueueListPa

(ctx context.Context, params *QueueListParams)

Source from the content-addressed store, hash-verified

2624// // handle error
2625// }
2626func (c *Client[TTx]) QueueList(ctx context.Context, params *QueueListParams) (*QueueListResult, error) {
2627 if params == nil {
2628 params = NewQueueListParams()
2629 }
2630
2631 queues, err := c.driver.GetExecutor().QueueList(ctx, &riverdriver.QueueListParams{
2632 Max: int(params.paginationCount),
2633 Schema: c.config.Schema,
2634 })
2635 if err != nil {
2636 return nil, err
2637 }
2638
2639 return &QueueListResult{Queues: queues}, nil
2640}
2641
2642// QueueListTx returns a list of all queues that are currently active or were
2643// recently active. Limit and offset can be used to paginate the results.

Callers

nothing calls this directly

Calls 3

NewQueueListParamsFunction · 0.85
QueueListMethod · 0.65
GetExecutorMethod · 0.65

Tested by

no test coverage detected