pagination

package
v0.0.0-...-05eea06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToToken

func ToToken(p Pagination) (string, error)

ToToken returns a next page token.

Types

type Pagination

type Pagination struct {
	Cursor      string
	ListRequest proto.Message
}

Pagination is a helper struct for implementing cursor-based pagination.

func FromToken

func FromToken(token string) (Pagination, error)

FromToken returns a Pagination struct from a next page token.

Jump to

Keyboard shortcuts

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