middlewares

package
v0.0.0-...-47332bf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorization

func Authorization() gin.HandlerFunc

Authorization middleware authorizes request

func CORS

func CORS() gin.HandlerFunc

CORS middleware enables CORS

func PrepareBody

func PrepareBody(input interface{}) gin.HandlerFunc

PrepareBody Middleware converts json to struct and validate the input

Types

This section is empty.

Jump to

Keyboard shortcuts

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