request

package
v0.0.0-...-663df1f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePageLinks(c *gin.Context) jsonapi.Links

GeneratePageLinks returns un valid jsonapi.Links struct with page links

Types

type Pagination

type Pagination struct {
	Page       uint `form:"page[number]"`
	Size       uint `form:"page[size]"`
	TotalItems uint
}

Pagination holds values extracted from the request

func ExtractPagination

func ExtractPagination(v url.Values) (*Pagination, error)

ExtractPagination gets the pagination params from the Gin Context

Jump to

Keyboard shortcuts

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