baseline

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: GPL-3.0 Imports: 11 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Distance uint8 = 5 // 数字越小越相似, 数字为0则为完全一致.

Functions

func UniqueHash

func UniqueHash(bl *Baseline) uint16

Types

type Baseline

type Baseline struct {
	*parsers.SprayResult
	Url                *url.URL       `json:"-"`
	Dir                bool           `json:"-"`
	Chunked            bool           `json:"-"`
	Body               pkg.BS         `json:"-"`
	Header             pkg.BS         `json:"-"`
	Raw                pkg.BS         `json:"-"`
	Response           *http.Response `json:"-"`
	Recu               bool           `json:"-"`
	RecuDepth          int            `json:"-"`
	URLs               []string       `json:"-"`
	Collected          bool           `json:"-"`
	Retry              int            `json:"-"`
	SameRedirectDomain bool           `json:"-"`
	IsBaseline         bool           `json:"-"`
}

func NewBaseline

func NewBaseline(u, host string, resp *ihttp.Response) *Baseline

func NewInvalidBaseline

func NewInvalidBaseline(u, host string, resp *ihttp.Response, reason string) *Baseline

func (*Baseline) Collect

func (bl *Baseline) Collect()

Collect 深度收集信息

func (*Baseline) CollectURL

func (bl *Baseline) CollectURL()

func (*Baseline) Compare

func (bl *Baseline) Compare(other *Baseline) int

Compare if totally equal return 1 if maybe equal return 0 not equal return -1

func (*Baseline) FuzzyCompare

func (bl *Baseline) FuzzyCompare(other *Baseline) bool

func (*Baseline) IsDir

func (bl *Baseline) IsDir() bool

func (*Baseline) ProbeOutput

func (bl *Baseline) ProbeOutput(format []string) string

Jump to

Keyboard shortcuts

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