Regc.Page (regc v0.0.2)

View Source

One page from a paginated registry operation.

Summary

Functions

Fetches the next page, or returns :done when there is no next link.

Types

t()

@type t() :: %Regc.Page{
  backend: module(),
  context: map(),
  items: [term()],
  metadata: Regc.Registry.Metadata.t(),
  next_url: String.t() | nil,
  operation: atom(),
  request_url: String.t(),
  visited: MapSet.t(String.t())
}

Functions

next(client, page)

@spec next(Regc.Client.t(), t()) :: {:ok, t()} | {:error, Regc.Error.t()} | :done

Fetches the next page, or returns :done when there is no next link.