diff options
Diffstat (limited to 'internal/datasource.go')
| -rw-r--r-- | internal/datasource.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/datasource.go b/internal/datasource.go index 59f0afa1..6cfc2110 100644 --- a/internal/datasource.go +++ b/internal/datasource.go @@ -97,6 +97,10 @@ type DataSource interface { GetModulePackages(ctx context.Context, modulePath, version string) ([]*PackageMeta, error) // GetSymbols returns symbols for the given unit and build context. GetSymbols(ctx context.Context, pkgPath, modulePath, version string, bc BuildContext) ([]*Symbol, error) + // GetImportedBy returns the paths of packages that import the given package. + GetImportedBy(ctx context.Context, pkgPath, modulePath string, limit int) ([]string, error) + // GetImportedByCount returns the number of packages that import the given package. + GetImportedByCount(ctx context.Context, pkgPath, modulePath string) (int, error) // SearchSupport reports the search types supported by this datasource. SearchSupport() SearchSupport |
