pagination

package
v1.0.1-0...-4418604 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Next

type Next struct {
	PageNumber int `json:"page_number"`
	PageLimit  int `json:"page_limit"`
	// contains filtered or unexported fields
}

func NewNext

func NewNext(logger *zap.Logger, ctx context.Context, next *string, query *schema.PaginationQuery) (*Next, error)

func (*Next) Decode

func (n *Next) Decode(next string) error

func (*Next) Encode

func (n *Next) Encode() *string

func (*Next) ProcessResponse

func (n *Next) ProcessResponse(totalRecords int64)

Jump to

Keyboard shortcuts

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