diff options
| author | Jonathan Amsterdam <jba@google.com> | 2020-04-27 16:12:09 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2020-04-29 20:56:42 +0000 |
| commit | 0f995de2a3635609f7f95c2efc86e2dab4fcadf0 (patch) | |
| tree | 9c453c709f35cc11365ae3543e86f97049d4b7f9 /internal/queue/queue.go | |
| parent | 21584e30257c7768c25dbe8a2dec7279ace4f84b (diff) | |
| download | go-x-pkgsite-0f995de2a3635609f7f95c2efc86e2dab4fcadf0.tar.xz | |
internal/postgres: support for getting path info
Add GetPathInfo, a function that gets information about a path. The
main handler would call either GetPathInfo(path, "unknown", "latest")
if the incoming URL path had no "@", or GetPathInfo(path, "unknown",
version) if the incoming path looked like "foo@v".
Based on the returned path (or absence of one), it would decide whether
to call GetDirectory, GetPackage or GetModule.
Change-Id: Ifc09202d8ec110960e2c3bbaf04b79fc7a7c72df
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/728098
Reviewed-by: Julie Qiu <julieqiu@google.com>
Diffstat (limited to 'internal/queue/queue.go')
0 files changed, 0 insertions, 0 deletions
