This commit is contained in:
crusader 2017-12-04 20:59:51 +09:00
parent 087d9c22d3
commit 7a567199a9
6 changed files with 99 additions and 0 deletions

4
service/ConfigService.go Normal file
View File

@ -0,0 +1,4 @@
package service
type ConfigService struct {
}

View File

@ -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 {
}

View File

@ -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
}

8
service/LogService.go Normal file
View File

@ -0,0 +1,8 @@
package service
type LogService struct {
}
func (ls *LogService) Send() error {
}

View File

@ -1,2 +1,14 @@
package service
type ProbeService struct {
}
func (ps *ProbeService) Start() error {
}
func (ps *ProbeService) Stop() error {
}
func (ps *ProbeService) Update() error {
}

View File

@ -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 {
}