MCPcopy Create free account
hub / github.com/chainreactors/spray / NewStatistor

Method NewStatistor

core/option.go:513–522  ·  view source on GitHub ↗

NewStatistor 在Option层面创建Statistor

(url string, total int)

Source from the content-addressed store, hash-verified

511
512// NewStatistor 在Option层面创建Statistor
513func (opt *Option) NewStatistor(url string, total int) *pkg.Statistor {
514 stat := pkg.NewStatistor(url)
515 stat.Total = total
516 stat.Dictionaries = opt.Dictionaries
517 stat.Word = opt.Word
518 stat.Offset = opt.Offset
519 stat.RuleFiles = opt.Rules
520 stat.RuleFilter = opt.FilterRule
521 return stat
522}
523
524func (opt *Option) NewRunner() (*Runner, error) {
525 var err error

Callers 2

RunWithBruteMethod · 0.80
AddRecursiveMethod · 0.80

Calls 1

NewStatistorFunction · 0.92

Tested by

no test coverage detected