Documentation ¶
Index ¶
- 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 SetFilterNetNumberAndMask(ipMask ...string) error
- func ToJsonString(object interface{}) string
- func TransformObject2Param(object interface{}) (params map[string]string)
- type Semaphore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentMillis ¶
func CurrentMillis() int64
func GetDurationWithDefault ¶
func GetGroupName ¶
func GetServiceCacheKey ¶
func GetUrlFormedMap ¶
func JsonToService ¶
func SetFilterNetNumberAndMask ¶
SetFilterNetNumberAndMask ipMask like 127.0.0.0/8
func ToJsonString ¶
func ToJsonString(object interface{}) string
func TransformObject2Param ¶
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
func (*Semaphore) AvailablePermits ¶
func (*Semaphore) TryAcquire ¶
Click to show internal directories.
Click to hide internal directories.