middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(callback func(*gin.Context, string) error) gin.HandlerFunc

Auth middleware using JWT

func CORS

func CORS() gin.HandlerFunc

CORS middleware injects CORS headers to each request

func JSON

func JSON() gin.HandlerFunc

JSON middleware to force Content-Type to JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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