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