Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + func FormatCursor(idx int) networkid.PaginationCursor + func IndexAtOrAfter(n int, getTime func(i int) time.Time, anchor time.Time) int + func NextStreamOrder(last int64, ts time.Time) int64 + func ParseCursor(cursor networkid.PaginationCursor) (int, bool) + type PaginateParams struct + AnchorMessage *database.Message + Count int + Cursor networkid.PaginationCursor + Forward bool + ForwardAnchorShift int + type PaginateResult struct + Cursor networkid.PaginationCursor + End int + HasMore bool + Start int + func Paginate(totalLen int, params PaginateParams, ...) PaginateResult