probe/config/path-sensorconfig.go
crusader 9133090b72 ing
2018-04-26 17:39:32 +09:00

16 lines
392 B
Go

package config
import (
"path"
ocmsc "git.loafle.net/overflow/commons-go/model/sensorconfig"
)
func SensorConfigContainerDir(name string) string {
return path.Join(ConfigDir(), name)
}
func SensorConfigFilePath(sensorConfig *ocmsc.SensorConfig) string {
return path.Join(SensorConfigContainerDir(sensorConfig.Crawler.Container), sensorConfig.Crawler.Name, sensorConfig.ID.String())
}