vtuplefilter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr = net.IP

type AddrFilter

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

func (*AddrFilter) FilterFn

func (pf *AddrFilter) FilterFn(t vtuple.VTuple) bool

type And

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

Logical operations

func (*And) FilterFn

func (op *And) FilterFn(t vtuple.VTuple) bool

type Filter

type Filter interface {
	FilterFn(t vtuple.VTuple) bool
}

func CreateAndFilter

func CreateAndFilter(fs ...Filter) Filter

func CreateAnyAddrFilter

func CreateAnyAddrFilter(addr Addr) Filter

func CreateAnyPortFilter

func CreateAnyPortFilter(port Port) Filter

func CreateDstAddrFilter

func CreateDstAddrFilter(addr Addr) Filter

func CreateDstPortFilter

func CreateDstPortFilter(port Port) Filter

func CreateOrFilter

func CreateOrFilter(fs ...Filter) Filter

func CreateSrcAddrFilter

func CreateSrcAddrFilter(addr Addr) Filter

func CreateSrcPortFilter

func CreateSrcPortFilter(port Port) Filter

func FromLine

func FromLine(s string) (Filter, error)

FromLine

type Not

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

func (*Not) FilterFn

func (op *Not) FilterFn(t vtuple.VTuple) bool

type Or

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

func (*Or) FilterFn

func (op *Or) FilterFn(t vtuple.VTuple) bool

type ParseError

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

func ParseErrorFmt

func ParseErrorFmt(s string, args ...interface{}) *ParseError

func (*ParseError) Error

func (e *ParseError) Error() string

type Port

type Port = uint16

type PortFilter

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

func (*PortFilter) FilterFn

func (pf *PortFilter) FilterFn(t vtuple.VTuple) bool

type ProtIP4Filter

type ProtIP4Filter struct{}

func (*ProtIP4Filter) FilterFn

func (f *ProtIP4Filter) FilterFn(t vtuple.VTuple) bool

type ProtIP6Filter

type ProtIP6Filter struct{}

func (*ProtIP6Filter) FilterFn

func (f *ProtIP6Filter) FilterFn(t vtuple.VTuple) bool

type ProtTcpFilter

type ProtTcpFilter struct{}

func (*ProtTcpFilter) FilterFn

func (f *ProtTcpFilter) FilterFn(t vtuple.VTuple) bool

type ProtUdpFilter

type ProtUdpFilter struct{}

func (*ProtUdpFilter) FilterFn

func (f *ProtUdpFilter) FilterFn(t vtuple.VTuple) bool

Jump to

Keyboard shortcuts

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