package
0.0.0-20240526191825-c5cd664a5854
Repository: https://github.com/azzonya/go-shortener.git
Documentation: pkg.go.dev

# Functions

AuthMiddleware is a Gin middleware function that handles authentication.
CompressRequest is a Gin middleware function that compresses HTTP request bodies using gzip compression if the request's content type is "application/json" or "text/html" and the client supports gzip encoding.
DecompressRequest is a Gin middleware function that decompresses HTTP request bodies encoded with gzip compression.
RequestLogger returns a Gin middleware function that logs incoming HTTP requests and outgoing HTTP responses using the provided logger.