Documentation
¶
Overview ¶
Package util provides some util function, such as ValidateHostPort.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAddressStrToSlice ¶
ConvertAddressStrToSlice convert address like "127.0.0.1:2379,127.0.0.1:2380" to endpoints like ["127.0.0.1:2379", "127.0.0.1:2380"] if enableHttps, the func will convert address to endpoints like ["https://127.0.0.1:2379", "https://127.0.0.1:2380"]
func EtcdKeyHideLogInfo ¶ added in v1.0.4
func FileExists ¶ added in v1.0.2
func GetNearest2Power ¶ added in v0.1.0
func GetWorkerIDByIp ¶
func GetWorkerIDByIp() int64
GetWorkerIDByIp use ip low 10 bit to generate workerID
func ValidateHostPort ¶
ValidateHostPort validate that hostPort is correct.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.