code: func (s *Service) ListTargets(ctx context.Context) (list []platform.ScraperTarget, err error) {
  	list = make([]platform.ScraperTarget, 0)
  	s.scraperTargetKV.Range(func(_, v interface{}) bool {
  		b, ok := v.(platform.ScraperTarget)
  		if !ok {
  			err = &platform.Error{
  				Code: platform.EInvalid,
  				Msg:  fmt.Sprintf("type %T is not a scraper target", v),
  			}
  			return false
  		}
  		list = append(list, b)
  		return true
  	})
  	return list, err
  }
docs: // ListTargets will list all scrape targets.