From 8514eebca6ca7b3213e879faa2a83c7e9ea6e181 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 11 Mar 2026 21:20:21 +0000 Subject: 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 kokoro-CI: kokoro LUCI-TryBot-Result: Go LUCI Auto-Submit: Ethan Lee --- internal/fetchdatasource/fetchdatasource.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/fetchdatasource') 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 +} -- cgit v1.3