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

Method QueueGet

client.go:2589–2594  ·  view source on GitHub ↗

QueueGet returns the queue with the given name. If the queue has not recently been active or does not exist, returns ErrNotFound. The provided context is used for the underlying Postgres query and can be used to cancel the operation or apply a timeout.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

2587// The provided context is used for the underlying Postgres query and can be
2588// used to cancel the operation or apply a timeout.
2589func (c *Client[TTx]) QueueGet(ctx context.Context, name string) (*rivertype.Queue, error) {
2590 return c.driver.GetExecutor().QueueGet(ctx, &riverdriver.QueueGetParams{
2591 Name: name,
2592 Schema: c.config.Schema,
2593 })
2594}
2595
2596// QueueGetTx returns the queue with the given name. If the queue has not recently
2597// been active or does not exist, returns ErrNotFound.

Callers

nothing calls this directly

Calls 2

QueueGetMethod · 0.65
GetExecutorMethod · 0.65

Tested by

no test coverage detected