Versions in this module Expand all Collapse all v0 v0.8.0 Mar 24, 2026 Changes in this version + func EventAllowed(event string, allowed []string) bool + func LoadWebhook() (string, error) + func MaskURL(url string) string + func PostJSON(url string, body []byte) (*http.Response, error) + func SaveWebhook(url string) error + func Send(event, message, sessionID string, detail *TemplateRef) error + type Payload struct + Detail *TemplateRef + Event string + Message string + Project string + SessionID string + Timestamp string + type TemplateRef struct + Hook string + Variables map[string]any + Variant string + func NewTemplateRef(hook, variant string, vars map[string]any) *TemplateRef