Versions in this module Expand all Collapse all v0 v0.4.0 Oct 26, 2026 Changes in this version + type Alert struct + Count int + Query string + type Detector struct + func New(threshold int, window, cooldown time.Duration) *Detector + func (d *Detector) Record(query string, t time.Time) Result + type Result struct + Alert *Alert + Matched bool