Documentation
¶
Index ¶
- Constants
- Variables
- func Allow(clientName string, ip string) bool
- func Clear(clientName string) error
- func Flush() error
- func FlushTo(tx *gorm.DB) error
- func History(clientName string, limit int) ([]model.ClientIP, error)
- func InvalidateAllCache()
- func Record(clientName string, ip string)
- func ResetCaches()
- func WarmUp() error
Constants ¶
View Source
const ( ModeMonitor = "monitor" ModeEnforce = "enforce" )
Variables ¶
View Source
var SecurityEventAuditHook func(clientName string, kind string, payload map[string]any)
SecurityEventAuditHook, when set by app wiring, mirrors enforced security events (e.g. ip_enforced_reject) into the durable audit log. It is a hook rather than a direct call to avoid an import cycle (service imports ipmonitor) and is debounced upstream by shouldPublishSecurityEvent (no audit flooding).
Functions ¶
func InvalidateAllCache ¶
func InvalidateAllCache()
func ResetCaches ¶
func ResetCaches()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.