package
0.0.0-20231006183139-e08dff8f0a3f
Repository: https://github.com/darklabel91/api_names.git
Documentation: pkg.go.dev

# Functions

RateLimit returns a Gin middleware function that limits the rate of requests to prevent DDoS attacks.
ValidateAuth returns a Gin middleware function that checks for a valid JWT token in the request header or cookie, and aborts the request with a 401 Unauthorized HTTP status code if the token is invalid or has expired.
ValidateID is a Gin middleware function that validates the "id" parameter of the request URL.
ValidateName validates :name param.
ValidateNameJSON validates JSON on models.NameType body.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author