Documentation ¶
Overview ¶
此文件包含安全信息,编译时请根据实际部署修改其中的内容, 并将文件拷贝为settings.pack.toml.go
客户端运行所需的相关配置ke
Index ¶
- Constants
- func DebugEnabled() bool
- func DecodeSetting() []byte
- func GetBiPidFile() string
- func GetLocalIp() string
- func GetLocalStorageDir() string
- func GetZkConfig() map[string]interface{}
- func LookupOsUidGid(name string) (uid int, gid int, err error)
- func ParsePostUpdateRule(ruleFile string) ([][]string, error)
- func ParseSecretSettings() (*toml.TomlTree, error)
- func Rchmod(dir string, mode os.FileMode) error
- func Rchown(dir string, uid int, gid int) error
- func SetConfig(name string, val interface{})
- func SetConfigFile(f string)
- func SetDebug(enable bool)
- func Setup() error
- type Config
- type EnvInfo
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetBiPidFile ¶
func GetBiPidFile() string
func GetLocalIp ¶
func GetLocalIp() string
func GetLocalStorageDir ¶
func GetLocalStorageDir() string
func GetZkConfig ¶
func GetZkConfig() map[string]interface{}
func ParsePostUpdateRule ¶
POST_UPDATE_SCRIPTS_RULE
func ParseSecretSettings ¶
func SetConfigFile ¶
func SetConfigFile(f string)
Types ¶
type Config ¶
type Config struct { ListenAddr string ListenAddrTransi string RunAsBi bool InstallDir string PidFile string DATA_ROOT string DATA_DIR string LOG_DIR string CONFIG_DIR []string DAEMON_USER string DAEMON_UID int DAEMON_GID int POST_UPDATE_CALLBACKS []string POST_UPDATE_SCRIPTS []string ENV string ClientVer string ENCRYPT_ENABLE bool ENCRYPT_KEY string ENCRYPT_IV string ENCRYPT_VER float64 DEVMODE bool DEBUG_FILE string ETCD_CONNECTION_TIMEOUT int64 ETCD_DIAL_KEEP_ALIVE_TIME int64 ETCD_DIAL_KEEP_ALIVE_TIMEOUT int64 ETCD_HEARTBEAT_KEY string ETCD_REQUEST_TIMEOUT int64 ETCD_MIN_RETRY_INTERVAL int64 ETCD_RETRY_INTERVAL_RANGE int64 ETCD_AUTO_SYNC_INTERVAL int64 POST_UPDATE_SCRIPTS_RULE string PostUpdateRule [][]string // 性能分析的侦听设置(未设置则不侦听). PPROF_LISTEN string // 当一个环境没有编译在dc中时,需要从远程服务器获取其信息. DOVE_SERVER string }
Click to show internal directories.
Click to hide internal directories.