pagination

package
v0.0.0-...-efbd42f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	Skip      int64
	Limit     int64
	SortOrder string
}

Pagination definition.

func Default

func Default() *Pagination

Default returns a `*Pagination` with default values.

func (*Pagination) GetSortInt

func (p *Pagination) GetSortInt() int

GetSortInt mapping to mongodb sort values.

func (*Pagination) SetLimit

func (p *Pagination) SetLimit(limit int64) *Pagination

func (*Pagination) SetSkip

func (p *Pagination) SetSkip(skip int64) *Pagination

func (*Pagination) SetSortOrder

func (p *Pagination) SetSortOrder(sortOrder string) *Pagination

Jump to

Keyboard shortcuts

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