pagination

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageSize = 50
	DefaultPageNum  = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	PageNum  int32
	PageSize int32
	Count    int32 // total number of records in DB
}

func NewPagination

func NewPagination(pageNum, pageSize int32) *Pagination

func (*Pagination) Offset

func (p *Pagination) Offset() int32

func (*Pagination) SetCount

func (p *Pagination) SetCount(count int32)

Jump to

Keyboard shortcuts

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