One page of a job listing, and where the next one is.
Returned by Zizq.list_jobs/2. Follow it with
Zizq.next_page/2, which returns nil once there are no more:
{:ok, page} = Zizq.list_jobs([queue: "emails"], MyApp.Zizq)
case Zizq.next_page(page, MyApp.Zizq) do
{:ok, nil} -> :done
{:ok, next} -> handle(next)
endThe links are opaque paths the server builds, carrying the cursor and every filter of the original request.
Follow Zizq.prev_page/2 to go the other direction.
Summary
Types
@type t() :: %Zizq.JobPage{ jobs: [Zizq.Job.t()], next: String.t() | nil, prev: String.t() | nil, self: String.t() | nil }