2018-04-19 06:11:13 +00:00
|
|
|
package crawler
|
|
|
|
|
|
|
|
import (
|
|
|
|
ocsm "git.loafle.net/overflow/commons-go/sensorconfig/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Crawler interface {
|
|
|
|
Name() string
|
2018-04-19 06:15:40 +00:00
|
|
|
Auth(crawlerName string, auth map[string]string) error
|
2018-04-19 06:11:13 +00:00
|
|
|
Get(sensorConfig *ocsm.SensorConfig) (map[string]string, error)
|
|
|
|
}
|