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)
| 2624 | // // handle error |
| 2625 | // } |
| 2626 | func (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. |
nothing calls this directly
no test coverage detected