CrawlerPool manages a pool of crawler engines.
| 13 | // CrawlerPool manages a pool of crawler engines. |
| 14 | type ( |
| 15 | CrawlerPool interface { |
| 16 | Reset(spiderNum int) int |
| 17 | SetPipelineConfig(outType string, batchCap int) |
| 18 | Use() Crawler |
| 19 | UseOpt() option.Option[Crawler] |
| 20 | Free(Crawler) |
| 21 | Stop() |
| 22 | } |
| 23 | cq struct { |
| 24 | capacity int |
| 25 | count int |
no outgoing calls
no test coverage detected