package
0.0.0-20240215220921-7b5a127e6df5
Repository: https://github.com/mowlcoder/go-url-shortener.git
Documentation: pkg.go.dev

# Functions

AuthMiddleware handle authorization.
NewCompressMiddleware is contructor function to create CompressMiddleware.
TrustedSubnetsMiddleware return middleware that not allow to request handlers from not trusted ip.
WithLogging is middleware to log request method, path and response size, status code, execution time.

# Constants

CookieName is cookie name where store token.

# Structs

CompressMiddleware is middleware to compress request and response.
CompressWriter responsible for compressing response of specified content-type.