package middleware import ( "net/http" ) func Headers(h http.HandlerFunc) http.HandlerFunc { return IgnoreOptionsRequests(ParseForm(h)) } func AuthOnly(roles string, h http.HandlerFunc) http.HandlerFunc { return IgnoreOptionsRequests(ParseForm(Auth(roles, h))) } func Full(roles string, h http.HandlerFunc) http.HandlerFunc { return IgnoreOptionsRequests(ParseForm(LogTraffic(Auth(roles, h)))) } func LogTraffic(h http.HandlerFunc) http.HandlerFunc { return IgnoreOptionsRequests(ParseForm(LogRequestAndResponse(h))) }