Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultCleanupInterval defines the cache cleanup frequency DefaultCleanupInterval = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPCache ¶
type IPCache struct {
// contains filtered or unexported fields
}
IPCache manages a thread-safe cache of IP information with TTL
func NewIPCache ¶
NewIPCache creates a new cache with a given TTL
func (*IPCache) MarkBlocked ¶
MarkBlocked marks an IP as blocked in the firewall
Click to show internal directories.
Click to hide internal directories.