diff --git a/config/config.go b/config/config.go deleted file mode 100644 index 2585c4a..0000000 --- a/config/config.go +++ /dev/null @@ -1,37 +0,0 @@ -package config - - -type Auth struct { -} - -type Connection struct { - Ip string `json:"ip"` - Port string `json:"port"` - PortType string `json:"portType"` - SSL bool `json:"ssl"` -} - -type Target struct { - Auth Auth - Connection Connection -} - -type Schedule struct { - Interval string `json:"interval"` -} - -type Item struct { -} - -type Crawler struct { - Name string `json:"name"` - Container string `json:"container"` -} - -type Config struct { - Id string `json:"id"` - Target Target `json:"target"` - Schedule Schedule `json:"schedule"` - Crawler Crawler `json:"crawler"` - Items []Item `json:"items"` -} diff --git a/config/example.json b/config/example.json deleted file mode 100644 index 3cf0a7c..0000000 --- a/config/example.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "id" : "SOEJWEOJWOEJOSDJFOASDJFOSDFO2903870928734", - "target" : { - "connection" : { - "ip" : "192.168.1.104", - "port" : "6379", - "ssl" : false, - "portType" : "tcp" - }, - "auth" : { - - } - }, - "schedule" : { - "interval" : "10" - }, - "crawler" : { - "name":"redis_protocol_crawler", - "container":"network_crawler" - }, - "items" : [ - ] -} \ No newline at end of file diff --git a/test/example.json b/test/example.json index 3cf0a7c..c4a6e99 100644 --- a/test/example.json +++ b/test/example.json @@ -15,9 +15,14 @@ "interval" : "10" }, "crawler" : { - "name":"redis_protocol_crawler", - "container":"network_crawler" + "name":"redis_crawler", + "container":"java_proxy" }, "items" : [ + { + "type":"cpu", + "":[], + "":[], + } ] } \ No newline at end of file