package
0.0.0-20240915221709-dcb96eb428ba
Repository: https://github.com/nocapcbas/webadmin.git
Documentation: pkg.go.dev
# Functions
CountWebRequest returns the number of failed web request pending for analysis.
DequeueRequests returns all pending requests ready to be inserted into the database.
GetRateLimitExpiration returns the duration before a key expire for rate limit.
GetThrottleExpiration returns the duration before a key expire for throttling.
GetWebRequest returns the next web request logged from list.
LogRequest adds a new item to the list of pending request to be logged.
LogWebRequest saves a web request for further analysis.
No description provided by the author
RateLimit increments the requests count for a specific key and set expiration if it's a new period.
Throttle increments the requests count for a specific key and set expiration if it's a new period.