Versions in this module Expand all Collapse all v1 v1.0.1 Jul 17, 2019 v1.0.0 Jul 10, 2019 Changes in this version + type Middleware struct + Debug bool + Enabled bool + FailStatusCode int + ForwardedForHeader string + ForwardedHostHeader string + ForwardedProtoHeader string + ForwardedTokenHeader string + ForwardedTokenValue string + func New() *Middleware + func (m *Middleware) DefaultTokenFailedAction(w http.ResponseWriter, r *http.Request) + func (m *Middleware) ServeMiddleware(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func (m *Middleware) SetTokenFailedAction(action func(w http.ResponseWriter, r *http.Request)) + func (m *Middleware) Warnings() []string