pagination

package
v0.0.0-...-2b26f3a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: GPL-3.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 interface {
	GetPagination(offset, limit, totalData int) PaginationData
}

func NewPagination

func NewPagination() Pagination

type PaginationData

type PaginationData struct {
	PreviousPage int   `json:"previous_page"`
	CurrentPage  int   `json:"current_page"`
	NextPage     int   `json:"next_page"`
	TotalPage    int   `json:"total_page"`
	PageList     []int `json:"page_list"`
}

Jump to

Keyboard shortcuts

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