package
0.0.0-20240707130328-7cf8dae7750a
Repository: https://github.com/nite-coder/blackbear.git
Documentation: pkg.go.dev
# Functions
NewCors creates a new Cors handler with the provided options.
NewGzip returns a middleware which will handle the Gzip compression in Invoke.
NewHealth returns Health middlware instance.
NewPPROF returns a mddleware instance.
NewStatic returns a new instance of Static.
# Constants
These compression constants are copied from the compress/gzip package.
These compression constants are copied from the compress/gzip package.
These compression constants are copied from the compress/gzip package.
These compression constants are copied from the compress/gzip package.
# Structs
Cors http handler.
GzipMiddleware struct is gzip middlware.
Health is health middleware struct.
Options is a configuration container to setup the CORS middleware.
PPROF is middleware struct.
Static is a middleware handler that serves static files in the given directory/filesystem.