alerting

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package alerting provides notification capabilities for security events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockedConnectionInfo

type BlockedConnectionInfo struct {
	SourceIP        string
	SourcePort      string
	DestinationIP   string
	DestinationPort string
	Destination     string // Human-readable destination (hostname, SNI, etc.)
	Reason          string
	Component       string // dns, http, sni, etc.
}

BlockedConnectionInfo contains details about a blocked connection.

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier handles sending notifications for security events.

func NewNotifier

func NewNotifier() *Notifier

NewNotifier creates a new notification client. Returns nil if not configured.

func (*Notifier) Close

func (n *Notifier) Close()

Close releases notifier resources and stops sending new alerts.

func (*Notifier) NotifyBlock

func (n *Notifier) NotifyBlock(ctx context.Context, info BlockedConnectionInfo)

NotifyBlock sends an alert notification for a blocked connection, with rate limiting to prevent spam.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL