Versions in this module Expand all Collapse all v1 v1.0.8 Mar 16, 2021 Changes in this version + func CurrentMillis() int64 + func GetConfigCacheKey(dataId string, group string, tenant string) string + func GetDurationWithDefault(metadata map[string]string, key string, defaultDuration time.Duration) time.Duration + func GetGroupName(serviceName string, groupName string) string + func GetServiceCacheKey(serviceName string, clusters string) string + func GetUrlFormedMap(source map[string]string) (urlEncoded string) + func JsonToService(result string) *model.Service + func LocalIP() string + func Md5(content string) (md string) + func ToJsonString(object interface{}) string + func TransformObject2Param(object interface{}) (params map[string]string) + type Semaphore struct + func NewSemaphore(concurrencyNum int) *Semaphore + func (this *Semaphore) Acquire() + func (this *Semaphore) AvailablePermits() int + func (this *Semaphore) Release() + func (this *Semaphore) TryAcquire() bool