code: func (l *State) ServiceStates() map[string]*ServiceState {
  	l.RLock()
  	defer l.RUnlock()
  
  	m := make(map[string]*ServiceState)
  	for id, s := range l.services {
  		if s.Deleted {
  			continue
  		}
  		m[id] = s.Clone()
  	}
  	return m
  }
docs: // ServiceStates returns a shallow copy of all service state records.
  // The service record still points to the original service record and
  // must not be modified.