grpcpagination

package
v0.0.0-...-2a06ba9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageInfo

func PageInfo(r Paginatable, total int) *protoapi.PageInfo

func Pagination

func Pagination(r Paginatable) (limit int32, offset int32)

Types

type Paginatable

type Paginatable interface {
	GetLimit() int64
	GetOffset() int64
}

Jump to

Keyboard shortcuts

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