Documentation ¶
Overview ¶
Package quota implement per IP address connection rate limiting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accept ¶
Check quota for the given IP address. Check will return true if the IP address is over its quota of connections else false.
func CacheBits ¶
CacheBits returns the current cache.attempts bits for debugging. It is best formatted with '%064b'.
func Config ¶
Config sets up package configuration for settings that can't be constants. It should be called by main, only once, before anything else starts. Once the configuration is set it should be treated as immutable an not changed.
func Status ¶
func Status()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.