code: func (p *PartitionedMemoryIdx) GetPath(orgId uint32, path string) []idx.Archive {
  	g, _ := errgroup.WithContext(context.Background())
  	result := make([][]idx.Archive, len(p.Partition))
  	var i int
  	for _, m := range p.Partition {
  		pos, m := i, m
  		g.Go(func() error {
  			result[pos] = m.GetPath(orgId, path)
  			return nil
  		})
  		i++
  	}
  	if err := g.Wait(); err != nil {
  		log.Errorf("memory-idx: failed to getPath: orgId=%d path=%s. %s", orgId, path, err)
  		return nil
  	}
  
  	// get our total count, so we can allocate our response in one go.
  	items := 0
  	for _, r := range result {
  		items += len(r)
  	}
  	response := make([]idx.Archive, 0, items)
  	for _, r := range result {
  		response = append(response, r...)
  	}
  	return response
  }
docs: // GetPath returns the archives under the given path.