pagination

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor[T any] struct {
	Items      []T    `json:"items"`
	NextCursor string `json:"next_cursor"`
	HasNext    bool   `json:"has_next"`
}

Cursor is a generic wrapper for cursor-based paginated responses.

type Page

type Page[T any] struct {
	Items []T   `json:"items"`
	Total int64 `json:"total"`
}

Page is a generic wrapper for offset-based paginated responses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL