View Source EventStore.Page (EventStore v1.4.7)

A page of results from a paginated query.

Summary

Types

t()

@type t() :: %EventStore.Page{
  entries: list(),
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}

t(entry)

@type t(entry) :: %EventStore.Page{
  entries: [entry],
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}

Functions

total_pages(total_entries, page_size)