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

Method Close

pkg/types/crawler_options.go:180–192  ·  view source on GitHub ↗

Close closes the crawler options resources

()

Source from the content-addressed store, hash-verified

178
179// Close closes the crawler options resources
180func (c *CrawlerOptions) Close() error {
181 if c.RateLimit != nil {
182 c.RateLimit.Stop()
183 }
184 if c.HostRateLimit != nil {
185 c.HostRateLimit.Stop()
186 }
187 if c.Dialer != nil {
188 c.Dialer.Close()
189 }
190 c.UniqueFilter.Close()
191 return c.OutputWriter.Close()
192}
193
194func (c *CrawlerOptions) ValidatePath(path string) bool {
195 if c.ExtensionsValidator != nil {

Callers 1

ExecuteMethod · 0.95

Calls 2

StopMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected