middleware

package
v0.0.0-...-f90f44b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptOPTIONS

func AcceptOPTIONS(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

AcceptOPTIONS sets the Access-Control-Allow-Origin and Access-Control-Allow-Headers headers

func AccessControlHandler

func AccessControlHandler(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

AccessControlHandler set the Access-Control-Allow-Origin and calls next HandlerFunc

func RequireTokenAuthenticationHandler

func RequireTokenAuthenticationHandler(secretKey string) negroni.HandlerFunc

RequireTokenAuthenticationHandler is a middleware handler which extracts the token from the header of from the query parameter and checks if the token is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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