Documentation
¶
Index ¶
- Constants
- Variables
- func CommonSecretChange(prefix string, src, dst interface{})
- func DecodeDBSensitiveField(encrypted string) string
- func EncodeDBSensitiveField(plainText string) string
- func GetAppName() string
- func GetConfDirPath() string
- func GetLogDirPath() string
- func GetRootPath() string
- func GetRunEnv() int
- func IsDockerPlatform() bool
- func IsEncrypted(data string) (isEncrypted bool, err error)
- func LoadConf(filename, subConf string, s interface{})
- func SetAppName(appName string)
- func SetRootPath(r string)
Constants ¶
View Source
const ( SubConfDefault = "" SubConfMount = "mount" SubConfApp = "app" )
View Source
const ( // 容器中的环境变量 CsseClusterType = "CSSE_CLUSTER_TYPE" DockAppName = "APP_NAME" DockerRunEnv = "RUN_ENV" )
View Source
const ( RunEnvTest = 0 RunEnvTips = 1 RunEnvOnline = 2 )
RUN_ENV: (prod,tips,test)
View Source
const DefaultRootPath = "."
Variables ¶
View Source
var ( LocalIP string AppName string RunMode string Hostname string )
Functions ¶
func CommonSecretChange ¶
func CommonSecretChange(prefix string, src, dst interface{})
目前只支持替换为string类型的value
func DecodeDBSensitiveField ¶
func EncodeDBSensitiveField ¶
func GetAppName ¶
func GetAppName() string
func IsEncrypted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.