paginator

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 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 {
	Total       int64       `json:"total"`
	CurrentPage int         `json:"current_page"`
	LastPage    int         `json:"last_page"`
	PerPage     int         `json:"per_page"`
	Data        interface{} `json:"data"`
}

func Paginate

func Paginate(c *gin.Context, db *gorm.DB, data interface{}, perPage int) Pagination

type Paginator

type Paginator struct {
	PerPage  int
	Page     int
	Offset   int
	Total    int64
	LastPage int
	Sort     string
	Order    string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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