monitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNotificationRateLimit     = 30 * time.Second       // Prevent notification spam for repeated secrets
	DefaultClipboardDebounceInterval = 100 * time.Millisecond // Ignore rapid clipboard changes (copy/paste operations)
	DefaultDetectionBurstLimit       = 10                     // Allow bursts of up to 10 rapid scans
	DefaultDetectionRateLimit        = 2.0                    // Average 2 scans per second
	ErrorChannelBuffer               = 2                      // Buffer errors from monitor and signal handler
)
View Source
const (
	NotificationTitleStartup       = "Clipleaks Started"
	NotificationMessageStartup     = "Clipboard monitoring is now active"
	NotificationTitleSecurityAlert = "Security Alert"
)

Variables

This section is empty.

Functions

func FormatSecretDetectedMessage

func FormatSecretDetectedMessage(patternName string) string

Types

type Monitor

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

func New

func New(cfg *config.Config, stdout io.Writer) *Monitor

func (*Monitor) Close

func (m *Monitor) Close() error

func (*Monitor) Run

func (m *Monitor) Run() error

func (*Monitor) RunWithContext

func (m *Monitor) RunWithContext(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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