overflow_discovery/crawler/crawler.go
crusader 3ebe20681f ing
2018-03-27 18:51:48 +09:00

21 lines
325 B
Go

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
}