Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GzipMiddleware ¶
func GzipMiddleware(next http.HandlerFunc) http.HandlerFunc
GzipMiddleware compresses the response body using GZIP if the client supports it. This can be used to save a lot of bandwidth at the cost of slightly more CPU usage.
func Router ¶
Router is the primary HTTP router for the server. It does NOT use the default global router from the http module.
func SlogMiddleware ¶
func SlogMiddleware(next http.HandlerFunc) http.HandlerFunc
SlogMiddleware logs out information about incoming HTTP requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.