middlewares

package module
v0.0.0-...-25fb4a6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 13 Imported by: 4

README

middlewares

Build Status GoDoc Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MiddlewareStack on pREST
	MiddlewareStack []negroni.Handler

	// BaseStack Middlewares
	BaseStack = []negroni.Handler{
		negroni.Handler(negroni.NewRecovery()),
		negroni.Handler(negroni.NewLogger()),
		HandlerSet(),
	}
)

Functions

func AccessControl

func AccessControl() negroni.Handler

AccessControl is a middleware to handle permissions on tables in pREST

func Cors

func Cors(origin []string, headers []string) negroni.Handler

Cors middleware

func GetApp

func GetApp() *negroni.Negroni

GetApp get negroni

func HandlerSet

func HandlerSet() negroni.Handler

HandlerSet add content type header

func JwtMiddleware

func JwtMiddleware(key string, algo string) negroni.Handler

JwtMiddleware check if actual request have JWT

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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