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.
Click to show internal directories.
Click to hide internal directories.