maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Client.V1.Core.Pagination

Synopsis

Documentation

data Cursor #

Constructors

Cursor 

Fields

Instances

Instances details
Default Cursor # 
Instance details

Defined in Maestro.Client.V1.Core.Pagination

Methods

defCursor

maxResultsPerPageNatural #

Maximum number of result per page.

allPages ∷ (Monad m, HasCursor a) ⇒ (Cursor → m a) → m (TimestampedData a) #

data Pagination #

Instances

Instances details
HasClient m api ⇒ HasClient m (Pagination :> api) # 
Instance details

Defined in Maestro.Client.V1.Core.Pagination

Associated Types

type Client m (Pagination :> api)

Methods

clientWithRouteProxy m → Proxy (Pagination :> api) → Request → Client m (Pagination :> api)

hoistClientMonadProxy m → Proxy (Pagination :> api) → (∀ x. mon x → mon' x) → Client mon (Pagination :> api) → Client mon' (Pagination :> api)

type Client m (Pagination :> api) # 
Instance details

Defined in Maestro.Client.V1.Core.Pagination

type Client m (Pagination :> api) = Cursor → Client m api

type PaginationApi api = QueryParam "count" Natural :> (QueryParam "cursor" NextCursor :> api) #