middlewares

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

CORS is a handler Gin func to setup Cross-Origin Resource Sharing by allowing all origins

func Negotiate

func Negotiate(formats ...string) gin.HandlerFunc

Negotiate sets the request format into the context depending on Accept Header

func Pagination

func Pagination() gin.HandlerFunc

Pagination is a handler Gin func to extract pagination params from the request

Types

This section is empty.

Jump to

Keyboard shortcuts

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