filter

package
v0.0.0-...-e3e3546 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionInvalid Action = ""
	ActionInclude Action = "include"
	ActionExclude Action = "exclude"
)

type Filter

type Filter struct {
	Action Action
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter(expr string, action Action) (*Filter, error)

func (*Filter) Eval

func (f *Filter) Eval(tags map[string]string, entry *har.Entry) (bool, error)

func (*Filter) LogValue

func (f *Filter) LogValue() slog.Value

Jump to

Keyboard shortcuts

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