ing
This commit is contained in:
parent
aca4ca25c6
commit
303b89199d
|
@ -10,12 +10,11 @@ var crawlers map[string]crawler.Crawler
|
|||
|
||||
func init() {
|
||||
crawlers = make(map[string]crawler.Crawler, 0)
|
||||
addCrawler(discovery.NewCrawler())
|
||||
}
|
||||
|
||||
func addCrawler(c crawler.Crawler) {
|
||||
crawlers[c.Name()] = c
|
||||
|
||||
addCrawler(discovery.NewCrawler())
|
||||
}
|
||||
|
||||
func GetCrawlers() map[string]crawler.Crawler {
|
||||
|
|
Loading…
Reference in New Issue
Block a user