package
0.0.0-20240416064245-4b5fdb6e4873
Repository: https://github.com/deniskhanov/shorterurl.git
Documentation: pkg.go.dev
# Functions
AuthPrivate provides authentication middleware for private routes.
AuthPublic provides authentication middleware for public routes.
GZIPCompress provides a compression middleware using gzip.
LogrusLog provides a logging middleware for Gin.
TrustedSubnet returns a Gin middleware function that checks if the client's IP is within the trusted subnets.