container_discovery/crawler/crawler.go
crusader 5f80794d28 ing
2018-06-21 19:54:31 +09:00

23 lines
405 B
Go

package crawler
import (
"git.loafle.net/overflow/crawler-go"
"git.loafle.net/overflow/container_discovery/crawler/discovery"
)
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.Key()] = c
}
func GetCrawlers() map[string]crawler.Crawler {
return crawlers
}