示例#1
0
文件: util.go 项目: gernest/legend
func GetServiceName(info core.ServiceInfo) string {
	return info.Name() + "." + fmt.Sprint(info.Status()) + "." + info.ID()
}
示例#2
0
func (s services) add(info core.ServiceInfo) {
	mu.Lock()
	s[info.ID()] = info
	mu.Unlock()
}