package
1.6.1
Repository: https://github.com/projeto-uspy/uspy-backend.git
Documentation: pkg.go.dev

# Functions

AllowAnyOrigin enables CORS for all origins testing purposes.
AllowUSPYOrigin enables CORS for the Frontend, according to dev/prod environment variables.
Bind takes a binder and returns a middleware function.
DefineDomain is a middleware for setting the cookie domain values.
DumpErrors is a middleware for dumping all errors that are set in the context.
JWT is used to ensure authorization with the JWT Access Cookie.
Logger is the middleware used for logging to stdout It is very similar to the default gin logging middleware, but omits errors at the last line This logger is useful to use with a custom error dumping middleware.
RateLimiter returns a middleware that sets up the rate limiting tool.