Beispiel #1
0
func GetServiceName(info core.ServiceInfo) string {
	return info.Name() + "." + fmt.Sprint(info.Status()) + "." + info.ID()
}
Beispiel #2
0
func (s services) add(info core.ServiceInfo) {
	mu.Lock()
	s[info.ID()] = info
	mu.Unlock()
}