Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + type Alert struct + CreatedAt time.Time + Delivered bool + Entity string + ID string + Message string + Type string + type AlertQueue struct + func NewAlertQueue(config CooldownConfig, handler func(*Alert) error) *AlertQueue + func (q *AlertQueue) Enqueue(alert *Alert) bool + func (q *AlertQueue) PendingCount() int + func (q *AlertQueue) Start() + func (q *AlertQueue) Stop() + type CooldownConfig struct + DrainInterval time.Duration + MaxPending int + Period time.Duration + SendDelay time.Duration + func DefaultCooldownConfig() CooldownConfig