filter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package filter implements response filtering (status, length, words, regex, duplicates) so only allowed findings are reported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowFilter

type AllowFilter interface {
	Allow(in Input) bool
}

AllowFilter decides whether a response passes the filter (should be reported as a hit). *Pipeline implements AllowFilter.

type Input

type Input struct {
	StatusCode  int
	Length      int
	Body        string
	ContentType string
	Words       int
	Lines       int
	TimeMS      int
}

type Pipeline

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

func New

func New(cfg *config.Config) *Pipeline

func (*Pipeline) Allow

func (p *Pipeline) Allow(in Input) bool

Jump to

Keyboard shortcuts

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