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

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

Link to this section Summary

Link to this section 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()
}

Link to this section Functions

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