This commit is contained in:
crusader
2018-03-27 00:14:19 +09:00
parent ca13dea9cd
commit a3ad29ff73
16 changed files with 872 additions and 166 deletions

View File

@@ -26,6 +26,10 @@ func ConfigDirPath() string {
return path.Join(RootDirPath(), ooccp.PathConfig)
}
func SensorConfigDirPath() string {
return path.Join(RootDirPath(), ooccp.PathSensorConfig)
}
func JREDirPath() string {
return path.Join(RootDirPath(), ooccp.PathJRE)
}

15
config/sensor_config.go Normal file
View File

@@ -0,0 +1,15 @@
package config
import (
"path"
sensorConfigM "git.loafle.net/overflow/overflow_commons_go/modules/sensor_config/model"
)
func SensorConfigContainerDirPath(name string) string {
return path.Join(SensorConfigDirPath(), name)
}
func SensorConfigFilePath(sensorConfig *sensorConfigM.SensorConfig) string {
return path.Join(SensorConfigContainerDirPath(sensorConfig.Crawler.Container), sensorConfig.Crawler.Name, sensorConfig.ID.String())
}