overflow_probes/config/sensor_config.go

16 lines
444 B
Go
Raw Permalink Normal View History

2018-03-26 15:14:19 +00:00
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())
}