Affected by GO-2022-0368
and 3 other vulnerabilities
GO-2022-0368 : Improper random number generation in github.com/coredns/coredns
GO-2024-3130 : CoreDNS vulnerable to TuDoor Attacks in github.com/coredns/coredns
GO-2025-3743 : CoreDNS Vulnerable to DoQ Memory Exhaustion via Stream Amplification in github.com/coredns/coredns
GO-2025-3942 : CoreDNS: DNS Cache Pinning via etcd Lease ID Confusion in github.com/coredns/coredns
Discover Packages
github.com/coredns/coredns
plugin
cache
freq
package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Jul 28, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 78
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package freq keeps track of last X seen events. The events themselves are not stored
here. So the Freq type should be added next to the thing it is tracking.
Freq tracks the frequencies of things.
New returns a new initialized Freq.
Hits returns the number of hits that we have seen, according to the updates we have done to f.
Reset resets f to time t and hits to hits.
Update updates the number of hits. Last time seen will be set to now.
If the last time we've seen this entity is within now - d, we increment hits, otherwise
we reset hits to 1. It returns the number of hits.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.