From 7a567199a96345fdfac5c2257416cc0fe3a32de0 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 4 Dec 2017 20:59:51 +0900 Subject: [PATCH] ing --- service/ConfigService.go | 4 ++++ service/CrawlerService.go | 19 +++++++++++++++++++ service/DiscoveryService.go | 36 ++++++++++++++++++++++++++++++++++++ service/LogService.go | 8 ++++++++ service/ProbeService.go | 12 ++++++++++++ service/SensorService.go | 20 ++++++++++++++++++++ 6 files changed, 99 insertions(+) create mode 100644 service/ConfigService.go create mode 100644 service/DiscoveryService.go create mode 100644 service/LogService.go diff --git a/service/ConfigService.go b/service/ConfigService.go new file mode 100644 index 0000000..89f7f66 --- /dev/null +++ b/service/ConfigService.go @@ -0,0 +1,4 @@ +package service + +type ConfigService struct { +} diff --git a/service/CrawlerService.go b/service/CrawlerService.go index 6d43c33..7e2b2d8 100644 --- a/service/CrawlerService.go +++ b/service/CrawlerService.go @@ -1 +1,20 @@ package service + +type CrawlerService struct { +} + +func (cs *CrawlerService) Install() error { + +} + +func (cs *CrawlerService) Uninstall() error { + +} + +func (cs *CrawlerService) Update() error { + +} + +func (cs *CrawlerService) Authenticate(crawler *configM.Crawler, target *configM.Target) error { + +} diff --git a/service/DiscoveryService.go b/service/DiscoveryService.go new file mode 100644 index 0000000..25c47c9 --- /dev/null +++ b/service/DiscoveryService.go @@ -0,0 +1,36 @@ +package service + +type DiscoveryService struct { +} + +func (ds *DiscoveryService) DiscoverZone(dz *discoveryM.DiscoveryZone) error { + return nil +} + +func (ds *DiscoveryService) DiscoverHost(zone *discoveryM.Zone, dz *discoveryM.DiscoveryHost) error { + return nil +} + +func (ds *DiscoveryService) DiscoverPort(host *discoveryM.Host, dz *discoveryM.DiscoveryPort) error { + return nil +} + +func (ds *DiscoveryService) DiscoverService(port *discoveryM.Port, dz *discoveryM.DiscoveryService) error { + return nil +} + +func (ds *DiscoveryService) DiscoveredZone(zone *discoveryM.Zone) error { + return nil +} + +func (ds *DiscoveryService) DiscoveredHost(host *discoveryM.Host) error { + return nil +} + +func (ds *DiscoveryService) DiscoveredPort(port *discoveryM.Port) error { + return nil +} + +func (ds *DiscoveryService) DiscoveredService(service *discoveryM.Service) error { + return nil +} diff --git a/service/LogService.go b/service/LogService.go new file mode 100644 index 0000000..9853291 --- /dev/null +++ b/service/LogService.go @@ -0,0 +1,8 @@ +package service + +type LogService struct { +} + +func (ls *LogService) Send() error { + +} diff --git a/service/ProbeService.go b/service/ProbeService.go index 344e88c..fa09dbe 100644 --- a/service/ProbeService.go +++ b/service/ProbeService.go @@ -1,2 +1,14 @@ package service +type ProbeService struct { +} + +func (ps *ProbeService) Start() error { + +} +func (ps *ProbeService) Stop() error { + +} +func (ps *ProbeService) Update() error { + +} diff --git a/service/SensorService.go b/service/SensorService.go index a89c6c7..0ae9586 100644 --- a/service/SensorService.go +++ b/service/SensorService.go @@ -2,3 +2,23 @@ package service type SensorService struct { } + +func (ss *SensorService) Start(id int64) error { + +} + +func (ss *SensorService) Stop(id int64) error { + +} + +func (ss *SensorService) Add(config *configM.Config) error { + +} + +func (ss *SensorService) Remove(id int64) error { + +} + +func (ss *SensorService) Update(id int64) error { + +}