pageinate

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paginate

Paginate returns the queryMods for the paginated data

Types

type CountStruct

type CountStruct struct {
	TotalCount int64 `boil:"total_count"`
}

CountStruct represents the count returned by the query

type PaginationRequestStruct

type PaginationRequestStruct struct {
	PageNumber   int `form:"page_number" json:"page_number"`
	PerPageCount int `form:"per_page_count" json:"per_page_count"`
}

PaginationRequestStruct represents a pagination request

type PaginationResponseStruct

type PaginationResponseStruct struct {
	TotalCount int64 `json:"total_count"`
	PageNumber int   `json:"page_number"`
}

PaginationResponseStruct represents the pagination results

Jump to

Keyboard shortcuts

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