pagination

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPage     int32 = 1
	DefaultPageSize int32 = 20
)

Variables

This section is empty.

Functions

func BuildPageResponse

func BuildPageResponse(total int64, page, pageSize int32) *paginationpb.PaginationResponse

BuildPageResponse constructs a PaginationResponse for page-based pagination.

func ExtractPage

func ExtractPage(p *paginationpb.PaginationRequest) (page, pageSize int32)

ExtractPage extracts page and pageSize from a PaginationRequest, falling back to defaults when absent or invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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