pagination

package
v0.0.0-...-116ca14 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 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 Pagination

type Pagination struct {
	Offset        int
	Limit         int
	ActualPage    int
	TotalPages    int
	TotalElements int
	LinkSelf      string
	LinkFirst     string
	LinkPrev      string
	LinkNext      string
	LinkLast      string
	Request       url.URL
}

func CreatePagination

func CreatePagination(reqUrl url.URL) *Pagination
func (pag *Pagination) GetLinks() string

func (*Pagination) SetHeaders

func (pag *Pagination) SetHeaders(w http.ResponseWriter)

func (*Pagination) SetTotalElements

func (pag *Pagination) SetTotalElements(rows int) error

Jump to

Keyboard shortcuts

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