MCPcopy Index your code
hub / github.com/MengMengCode/GetRealityDomain / NewResultProcessorWithProgress

Function NewResultProcessorWithProgress

output.go:120–132  ·  view source on GitHub ↗

NewResultProcessorWithProgress 创建带进度的结果处理器

(outputFile string, totalTargets int)

Source from the content-addressed store, hash-verified

118
119// NewResultProcessorWithProgress 创建带进度的结果处理器
120func NewResultProcessorWithProgress(outputFile string, totalTargets int) (*ResultProcessor, error) {
121 csvWriter, err := NewCSVWriter(outputFile)
122 if err != nil {
123 return nil, err
124 }
125
126 return &ResultProcessor{
127 csvWriter: csvWriter,
128 startTime: time.Now(),
129 totalTargets: totalTargets,
130 lastUpdate: time.Now(),
131 }, nil
132}
133
134// ProcessResults 处理扫描结果
135func (rp *ResultProcessor) ProcessResults(resultChan <-chan ScanResult) {

Callers 1

scanAddressFunction · 0.85

Calls 1

NewCSVWriterFunction · 0.85

Tested by

no test coverage detected