Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func InitCmd(cmd *cobra.Command, logCfg *logutil.Config) context.CancelFunc
- func InitSignalHandling(shutdown shutdownNotify, cancel context.CancelFunc)
- func JSONPrint(cmd *cobra.Command, v interface{}) error
- func LogHTTPProxies()
- func StrictDecodeFile(path, component string, cfg interface{}, ignoreCheckItems ...string) error
- func VerifyPdEndpoint(pdEndpoint string, useTLS bool) error
Constants ¶
View Source
const ( HTTP = "http" HTTPS = "https" )
Endpoint schemes.
Variables ¶
This section is empty.
Functions ¶
func InitSignalHandling ¶
func InitSignalHandling(shutdown shutdownNotify, cancel context.CancelFunc)
InitSignalHandling initializes signal handling. It must be called after InitCmd.
func LogHTTPProxies ¶
func LogHTTPProxies()
LogHTTPProxies logs HTTP proxy relative environment variables.
func StrictDecodeFile ¶
StrictDecodeFile decodes the toml file strictly. If any item in confFile file is not mapped into the Config struct, issue an error and stop the server from starting.
func VerifyPdEndpoint ¶
VerifyPdEndpoint verifies whether the pd endpoint is a valid http or https URL. The certificate is required when using https.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.