ing
This commit is contained in:
parent
b31928934d
commit
d3d5b24eee
|
@ -3,10 +3,19 @@ package config
|
||||||
import "flag"
|
import "flag"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LogConfigFilePathParamName = "log-config-path"
|
FlagConfigDirName = "config-dir"
|
||||||
PidFilePathParamName = "pid-path"
|
FlagLogConfigFilePathName = "log-config-path"
|
||||||
|
FlagPidFilePathName = "pid-path"
|
||||||
)
|
)
|
||||||
|
|
||||||
func FlagConfigDir() *string {
|
func FlagConfigDir() *string {
|
||||||
return flag.String("config-dir", ".", "The directory path of config")
|
return flag.String(FlagConfigDirName, "./config.json", "The directory path of config")
|
||||||
|
}
|
||||||
|
|
||||||
|
func FlagLogConfigFilePath() *string {
|
||||||
|
return flag.String(FlagLogConfigFilePathName, "./logging.json", "The file path of logging config")
|
||||||
|
}
|
||||||
|
|
||||||
|
func FlagPidFilePath() *string {
|
||||||
|
return flag.String(FlagPidFilePathName, "./pid.pid", "The file path of pid")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user