33 lines
574 B
Go
33 lines
574 B
Go
package discovery
|
|
|
|
import (
|
|
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
|
|
"git.loafle.net/overflow/crawler-go"
|
|
)
|
|
|
|
type DiscoveryCrawler struct {
|
|
}
|
|
|
|
func (c *DiscoveryCrawler) Name() string {
|
|
return "DISCOVERY"
|
|
}
|
|
|
|
func (c *DiscoveryCrawler) String() string {
|
|
return "Discovery"
|
|
}
|
|
|
|
func (c *DiscoveryCrawler) Auth(auth map[string]interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (c *DiscoveryCrawler) Get(sensorConfig *ocmsc.SensorConfig) (map[string]string, error) {
|
|
|
|
return nil, nil
|
|
}
|
|
|
|
func NewCrawler() crawler.Crawler {
|
|
c := &DiscoveryCrawler{}
|
|
|
|
return c
|
|
}
|