Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GzipMiddleware = handlers.CompressHandler LoggingMiddleware = func(next http.Handler) http.Handler { return handlers.LoggingHandler(os.Stderr, next) } GoroutineMiddleware = func(next http.Handler) http.Handler { return http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { log.Println("You've got", runtime.NumGoroutine(), "goroutines running") next.ServeHTTP(w, r) })) } AllowAllCorsMiddleware = func(next http.Handler) http.Handler { return cors.AllowAll().Handler(next) } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.