code: func (l *State) Services() map[string]*structs.NodeService {
  	l.RLock()
  	defer l.RUnlock()
  
  	m := make(map[string]*structs.NodeService)
  	for id, s := range l.services {
  		if s.Deleted {
  			continue
  		}
  		m[id] = s.Service
  	}
  	return m
  }
docs: // Services returns the locally registered services that the
  // agent is aware of and are being kept in sync with the server