overflow_discovery/crawler/crawler.go

21 lines
325 B
Go
Raw Normal View History

2018-03-27 09:51:48 +00:00
package crawler
import (
oopcc "git.loafle.net/overflow/overflow_probe_container/crawler"
)
var crawlers map[string]oopcc.Crawler
func init() {
crawlers = make(map[string]oopcc.Crawler, 0)
}
func addCrawler(c oopcc.Crawler) {
crawlers[c.Name()] = c
}
func GetCrawlers() map[string]oopcc.Crawler {
return crawlers
}