Documentation
¶
Overview ¶
Package alerts is the producer-facing seam for security alerting. It owns the alert Payload DTO and a publish-once dispatch indirection, so alert producers (the scan engines, policy, …) can fire alerts without depending on the webhook-delivery implementation, which stays in package main and is installed once at startup via SetSink. ADR-0002/0003 (sibling to the obs sink seam).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Payload ¶
type Payload struct {
Event string `json:"event"`
Timestamp string `json:"timestamp"`
Actor string `json:"actor"` // client IP or username
Host string `json:"host"`
Detail string `json:"detail"` // virus name / rule name / pattern
Source string `json:"source"` // "clamav","yara","threatfeed","policy","auth"
}
Payload is the JSON body delivered to webhooks for a security event.
Click to show internal directories.
Click to hide internal directories.