internal/queue: generalize

Break the dependency between internal/queue and internal/scan.

Queue.Enqueue takes a Task, which is a new interface that scan.Request
implements.

Change-Id: I5c0bebc556caf94cf497ad59de2290efec7eec70
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/467315
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
6 files changed
tree: 13033a456f1231e36b5655d7f3b06c63bfbd097d
  1. cmd/
  2. deploy/
  3. devtools/
  4. internal/
  5. static/
  6. terraform/
  7. all_test.go
  8. checks.bash
  9. config.json.commented
  10. CONTRIBUTING.md
  11. go.mod
  12. go.sum
  13. LICENSE
  14. PATENTS
  15. README.md
  16. tools_test.go
README.md

pkgsite-metrics

This repository contains code that serves pkg.go.dev/metrics.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.