Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
type RateLimit struct {
// contains filtered or unexported fields
}
Per-identifier access tracking
Originally designed with rate-limiting calls to go HTTP services
func (*RateLimit) IsRateLimited ¶
Return true if a host/identifier should be rate limited
false is returned if the target identifier/host should not be rate limited
func (*RateLimit) SetIdentifier ¶
Set the identifier for this rate limit instance Originally designed to be the IP address of hosts making HTTP connections
Click to show internal directories.
Click to hide internal directories.