View Source Stellar.Horizon.Collection (Elixir Stellar SDK v0.22.0)

Paginates data and returns collection-based results for multiple Horizon endpoints.

Summary

Types

@type pagination() :: {function(), Keyword.t()}
@type records() :: [resource(), ...]
@type resource() :: {module(), function()}
@type response() :: map()
@type t() :: %Stellar.Horizon.Collection{
  next: function(),
  prev: function(),
  records: records()
}

Functions

@spec new(response :: response(), resource :: resource()) :: t()