MCPcopy
hub / github.com/projectdiscovery/katana / StartURL

Method StartURL

pkg/engine/headless/debugger.go:55–67  ·  view source on GitHub ↗

StartURL marks a URL as being processed

(url string, depth int)

Source from the content-addressed store, hash-verified

53
54// StartURL marks a URL as being processed
55func (cd *CrawlDebugger) StartURL(url string, depth int) {
56 if cd == nil {
57 return
58 }
59
60 cd.mu.Lock()
61 cd.activeURLs[url] = &ActiveURL{
62 URL: url,
63 StartTime: time.Now(),
64 Depth: depth,
65 }
66 cd.mu.Unlock()
67}
68
69// EndURL marks a URL as finished processing
70func (cd *CrawlDebugger) EndURL(url string) {

Callers 1

CrawlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected