fingerprint

package
v1.3.4-alpha10 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRules

func GetRules() ([]*rule.GeneralRule, error)

func LoadAllDefaultRules

func LoadAllDefaultRules() (rules []*rule.FingerPrintRule)

func LoadCPEFromWebfingerrintCPE

func LoadCPEFromWebfingerrintCPE(o *webfingerprint.CPE) *rule.CPE

func SaveRules

func SaveRules(rules ...rule.GeneralRule) error

Types

type MatchFun

type MatchFun func(data []byte) (bool, error)

type Matcher

type Matcher struct {
	ErrorHandle func(error)
	Route       func(ctx context.Context, webPath string) ([]byte, error)
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher(rules ...*rule.FingerPrintRule) *Matcher

func (*Matcher) AddRules

func (m *Matcher) AddRules(rules []*rule.FingerPrintRule)

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, data []byte) []*rule.CPE

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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