filterejection

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EjectedFilter

type EjectedFilter struct {
	FilterName string         `json:"filter_name"`
	Reason     EjectionReason `json:"reason"`
	Details    string         `json:"details"`
	EjectedAt  string         `json:"ejected_at"`
}

type EjectionEngine

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

func NewEjectionEngine

func NewEjectionEngine() *EjectionEngine

func (*EjectionEngine) Eject

func (e *EjectionEngine) Eject(filterName string, reason EjectionReason, details string)

func (*EjectionEngine) EjectByPattern

func (e *EjectionEngine) EjectByPattern(pattern string, reason EjectionReason) int

func (*EjectionEngine) FilterActive

func (e *EjectionEngine) FilterActive(filters []string) []string

func (*EjectionEngine) GetEjected

func (e *EjectionEngine) GetEjected() []*EjectedFilter

func (*EjectionEngine) IsEjected

func (e *EjectionEngine) IsEjected(filterName string) bool

func (*EjectionEngine) Register

func (e *EjectionEngine) Register(name string)

func (*EjectionEngine) Restore

func (e *EjectionEngine) Restore(filterName string)

func (*EjectionEngine) Stats

func (e *EjectionEngine) Stats() map[string]int

type EjectionReason

type EjectionReason string
const (
	EjectionSecurity    EjectionReason = "security"
	EjectionPerformance EjectionReason = "performance"
	EjectionQuality     EjectionReason = "quality"
	EjectionManual      EjectionReason = "manual"
	EjectionConflict    EjectionReason = "conflict"
)

Jump to

Keyboard shortcuts

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