Versions in this module Expand all Collapse all v0 v0.4.0 Sep 4, 2017 v0.3.0 Jan 25, 2017 Changes in this version + const AUTHENTICATOR_MIDDLEWARE + const REQUEST_ID_HEADER + const REQUEST_LOGGER_MIDDLEWARE + const USER_ID_HEADER + const XREQUESTID_MIDDLEWARE + type Middleware interface + Action func(next http.Handler) http.Handler + GetInfo func(r *http.Request, mc *MiddlewareContext) + type MiddlewareContext struct + Admin bool + UserId string + XRequestId string + type MiddlewareHandler struct + Middlewares map[string]Middleware + func (mwh *MiddlewareHandler) GetMiddlewareContext(r *http.Request) *MiddlewareContext + func (mwh *MiddlewareHandler) Handle(apiHandler http.Handler) http.Handler