pagination

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPagination added in v1.2.1

func NewPagination(page int, size int) *model.Pagination

Types

type Info

type Info struct {
	Resource *model.Resource
	// contains filtered or unexported fields
}

func NewPaginationInfo

func NewPaginationInfo(totalElements int, pagination *model.Pagination) *Info

func (*Info) SetAllData

func (p *Info) SetAllData(currentTotalElements int)

func (*Info) SetCurrentPage

func (p *Info) SetCurrentPage(currentTotalElements int)

func (*Info) SetFirstPage

func (p *Info) SetFirstPage()

func (*Info) SetLastPage

func (p *Info) SetLastPage()

func (*Info) SetNextAndPreviousPage

func (p *Info) SetNextAndPreviousPage()

func (*Info) SetNextPage

func (p *Info) SetNextPage()

func (*Info) SetPreviousPage

func (p *Info) SetPreviousPage()

Jump to

Keyboard shortcuts

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