Documentation ¶
Index ¶
- func Authenticate(nextHandler http.HandlerFunc) http.HandlerFunc
- func Cache(cacheService chronicle.CacheService) func(string, http.HandlerFunc) http.HandlerFunc
- func Gzip(next http.Handler) http.Handler
- func LogRequest(nextHandler http.Handler) http.Handler
- func PanicHandler(nextHandler http.Handler) http.Handler
- func TraceRequest(nextHandler http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(nextHandler http.HandlerFunc) http.HandlerFunc
Authenticate request
func Cache ¶
func Cache(cacheService chronicle.CacheService) func(string, http.HandlerFunc) http.HandlerFunc
Cache http request
func LogRequest ¶
LogRequest with info level every http request, unless production
func PanicHandler ¶
PanicHandler will return statusCOde 500 and log panic error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.