Documentation
¶
Index ¶
- Constants
- func InitCmd(cmd *cobra.Command, logCfg *logutil.Config) context.CancelFunc
- func JSONPrint(cmd *cobra.Command, v interface{}) error
- func LogHTTPProxies()
- func StrictDecodeFile(path, component string, cfg interface{}, ignoreCheckItems ...string) error
- func VerifyAndGetTiKVCDCClusterVersion(ctx context.Context, cdcEtcdCli *etcd.CDCEtcdClient) (version.TiKVCDCClusterVersion, 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 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 VerifyAndGetTiKVCDCClusterVersion ¶
func VerifyAndGetTiKVCDCClusterVersion( ctx context.Context, cdcEtcdCli *etcd.CDCEtcdClient, ) (version.TiKVCDCClusterVersion, error)
VerifyAndGetTiKVCDCClusterVersion verifies and gets the version of ticdc. If it is an incompatible version, an error is returned.
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.