aboutsummaryrefslogtreecommitdiff
path: root/internal/fetchdatasource
diff options
context:
space:
mode:
authorEthan Lee <ethanalee@google.com>2026-03-11 21:20:21 +0000
committerGopher Robot <gobot@golang.org>2026-03-30 13:26:49 -0700
commit8514eebca6ca7b3213e879faa2a83c7e9ea6e181 (patch)
tree85db643baa162d5a828895d3655b8e1fd3f5c9af /internal/fetchdatasource
parent46b63f3ffddc9657bc2c45fb116dc49c0b381a34 (diff)
downloadgo-x-pkgsite-8514eebca6ca7b3213e879faa2a83c7e9ea6e181.tar.xz
internal/api: implement package imported-by endpoint
- Implement ServePackageImportedBy handler and GetImportedBy and GetImportedByCount datasource methods. Change-Id: I8c4cc65fbff7172eaf48e5426e4f3f41c82bd38e Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754865 Reviewed-by: Jonathan Amsterdam <jba@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ethan Lee <ethanalee@google.com>
Diffstat (limited to 'internal/fetchdatasource')
-rw-r--r--internal/fetchdatasource/fetchdatasource.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/fetchdatasource/fetchdatasource.go b/internal/fetchdatasource/fetchdatasource.go
index dfe30fc9..af03c733 100644
--- a/internal/fetchdatasource/fetchdatasource.go
+++ b/internal/fetchdatasource/fetchdatasource.go
@@ -436,3 +436,13 @@ func (ds *FetchDataSource) GetSymbols(ctx context.Context, pkgPath, modulePath,
}
return doc.API, nil
}
+
+// GetImportedBy is not implemented.
+func (ds *FetchDataSource) GetImportedBy(ctx context.Context, pkgPath, modulePath string, limit int) ([]string, error) {
+ return nil, nil
+}
+
+// GetImportedByCount is not implemented.
+func (ds *FetchDataSource) GetImportedByCount(ctx context.Context, pkgPath, modulePath string) (int, error) {
+ return 0, nil
+}