rule

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package rule matches audit (banned-word/domain) regexes and produces DetectResult (ported from XrayR common/rule). Placeholder — implemented in Phase 1 (doc/03 T6).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	InboundRule         *sync.Map // Key: Tag, Value: []api.DetectRule
	InboundDetectResult *sync.Map // key: Tag, Value: mapset.NewSet []api.DetectResult
	// contains filtered or unexported fields
}

func New

func New() *Manager

func (*Manager) Detect

func (r *Manager) Detect(tag string, destination string, email string) (reject bool)

func (*Manager) GetDetectResult

func (r *Manager) GetDetectResult(tag string) (*[]api.DetectResult, error)

func (*Manager) UpdateRule

func (r *Manager) UpdateRule(tag string, newRuleList []api.DetectRule) error

Jump to

Keyboard shortcuts

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