pagination

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 4 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 []byte

func NewCursor

func NewCursor(v interface{}) (Cursor, error)

func (Cursor) Tokenize

func (c Cursor) Tokenize() string

type Page

type Page struct {
	Size   int
	Cursor Cursor
}

func NewPage

func NewPage(p *proto.RequestPagination) (Page, error)

func (Page) Extract

func (p Page) Extract(data interface{}) error

Jump to

Keyboard shortcuts

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