PaginatedHistory#
- class gafaelfawr.models.history.PaginatedHistory(entries, count, next_cursor=None, prev_cursor=None)#
-
Encapsulates paginated history entries with pagination information.
Holds a paginated list of a generic type, complete with a count and cursors. Can hold any type of entry, but uses a
HistoryCursor
, so implicitly requires the type be one that is meaningfully paginated by that type of cursor.- Parameters:
count (
int
) –next_cursor (
Optional
[HistoryCursor
], default:None
) –prev_cursor (
Optional
[HistoryCursor
], default:None
) –
Attributes Summary
Cursor for the next batch of entries.
Cursor for the previous batch of entries.
Methods Summary
link_header
(base_url)Construct an RFC 8288
Link
header for a paginated result.Attributes Documentation
-
next_cursor:
Optional
[HistoryCursor
] = None# Cursor for the next batch of entries.
-
prev_cursor:
Optional
[HistoryCursor
] = None# Cursor for the previous batch of entries.
Methods Documentation