container_discovery/crawler/crawler.go
crusader 303b89199d ing
2018-04-20 00:32:27 +09:00

23 lines
406 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.Name()] = c
}
func GetCrawlers() map[string]crawler.Crawler {
return crawlers
}