Documentation
¶
Index ¶
- Constants
- Variables
- func AddEntityQueryBytes(used *int, value any) error
- func DiscoveryDocument(value string) string
- func DiscoveryGrams(value string) []string
- func DiscoveryLexeme(term string) string
- func DiscoveryPatterns(patterns []string) ([]string, []bool)
- func DiscoveryTerms(value string, projectTerms []string) []string
- func FoldName(value string) string
- func GeneratedFilename(path string) bool
- func IdentifierSegments(value string) []string
- func NameGrams(value string) []string
- func NormalizeDiscovery(value string) string
- func NormalizeFilePath(value string) (string, error)
- func PathPatterns(patterns []string) ([]string, []bool)
- func SegmentWordVariants(word string) []string
- type AggregateFanQuery
- type AggregateLimitQuery
- type AggregateModuleQuery
- type AggregateModuleRow
- type AggregateNamesQuery
- type AggregateStore
- type AggregateUnresolvedQuery
- type AnalysisEntityQuery
- type AnalysisEvidenceQuery
- type AnalysisStore
- type DiscoveryQuery
- type DiscoverySearch
- type DiscoveryStore
- type EntityNeighbor
- type EntityNeighborQuery
- type EntityQuery
- type EntityStore
- type FileClassificationQuery
- type FileClassificationRow
- type FileClassificationStore
- type FileCountStore
- type FileDependencyPairRow
- type FileDependencyQuery
- type FileDependencyStore
- type FileQuery
- type FileStore
- type HierarchyCount
- type HierarchyCountQuery
- type HierarchyStore
- type Limits
- type Neighbor
- type NeighborQuery
- type QuerySnapshot
- type SegmentSearch
- type SegmentStore
- type Service
- func (service *Service) AffectedTests(ctx context.Context, request graphprotocol.AffectedTestsRequest) (graphprotocol.AffectedTestsResponse, error)
- func (service *Service) AmbiguousReferencedNames(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
- func (service *Service) CallGraph(ctx context.Context, request graphprotocol.EntityImpactRequest) (graphprotocol.SubgraphResponse, error)
- func (service *Service) CircularDependencies(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) Context(ctx context.Context, request graphprotocol.ContextRequest) (graphprotocol.ContextResponse, error)
- func (service *Service) Discover(ctx context.Context, req graphprotocol.DiscoverRequest) (graphprotocol.DiscoverResponse, error)
- func (service *Service) Entities(ctx context.Context, request graphprotocol.EntitiesRequest) (graphprotocol.EntitiesResponse, error)
- func (service *Service) ExportedSymbols(ctx context.Context, request graphprotocol.FileEntityRequest) (graphprotocol.EntitiesResponse, error)
- func (service *Service) FanIn(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateCountsResponse, error)
- func (service *Service) FanOut(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateCountsResponse, error)
- func (service *Service) FileClassifications(ctx context.Context, request graphprotocol.FileClassificationRequest) (graphprotocol.FileClassificationResponse, error)
- func (service *Service) FileDependencies(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) FileDependencyPairs(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) FileDependentCounts(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) FileDependents(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) FileNodes(ctx context.Context, request graphprotocol.FileNodesRequest) (graphprotocol.EntitiesResponse, error)
- func (service *Service) FileReachCounts(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
- func (service *Service) FilteredSubgraph(ctx context.Context, request graphprotocol.FilteredSubgraphRequest) (graphprotocol.SubgraphResponse, error)
- func (service *Service) FindByQualifiedName(ctx context.Context, request graphprotocol.QualifiedNameRequest) (graphprotocol.EntitiesResponse, error)
- func (service *Service) GeneratedFileCount(ctx context.Context, request graphprotocol.GeneratedFileCountRequest) (graphprotocol.GeneratedFileCountResponse, error)
- func (service *Service) GraphStats(ctx context.Context, scope graphprotocol.Scope) (graphprotocol.GraphStatsResponse, error)
- func (service *Service) Health(ctx context.Context) error
- func (service *Service) Impact(ctx context.Context, request graphprotocol.ImpactRequest) (graphprotocol.ImpactResponse, error)
- func (service *Service) ImpactRadius(ctx context.Context, request graphprotocol.EntityImpactRequest) (graphprotocol.SubgraphResponse, error)
- func (service *Service) IndexedFiles(ctx context.Context, req graphprotocol.FilesRequest) (graphprotocol.FilesResponse, error)
- func (service *Service) LanguagesWithExports(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
- func (service *Service) ModuleAggregation(ctx context.Context, request graphprotocol.ModuleAggregationRequest) (graphprotocol.ModuleAggregationResponse, error)
- func (service *Service) ModuleStructure(ctx context.Context, request graphprotocol.ScopeRequest) (graphprotocol.ModuleStructureResponse, error)
- func (service *Service) NodeMetrics(ctx context.Context, request graphprotocol.NodeMetricsRequest) (graphprotocol.NodeMetricsResponse, error)
- func (service *Service) RelevantContext(ctx context.Context, request graphprotocol.RelevantContextRequest) (graphprotocol.RelevantContextResponse, error)
- func (service *Service) SegmentMatches(ctx context.Context, req graphprotocol.SegmentRequest) (graphprotocol.SegmentResponse, error)
- func (service *Service) SymbolCalls(ctx context.Context, request graphprotocol.SymbolCallsRequest) (graphprotocol.SymbolResponse, error)
- func (service *Service) SymbolImpact(ctx context.Context, request graphprotocol.SymbolImpactRequest) (graphprotocol.SymbolResponse, error)
- func (service *Service) TopCallingFiles(ctx context.Context, request graphprotocol.AggregateLimitRequest) (graphprotocol.TopCallingFilesResponse, error)
- func (service *Service) TopDependedOn(ctx context.Context, request graphprotocol.AggregateLimitRequest) (graphprotocol.TopDependedOnResponse, error)
- func (service *Service) Trace(ctx context.Context, request graphprotocol.TraceRequest) (graphprotocol.TraceResponse, error)
- func (service *Service) Traverse(ctx context.Context, request graphprotocol.TraverseRequest) (graphprotocol.TraverseResponse, error)
- func (service *Service) TypeHierarchy(ctx context.Context, request graphprotocol.TypeHierarchyRequest) (graphprotocol.TypeHierarchyResponse, error)
- func (service *Service) TypeRelations(ctx context.Context, request graphprotocol.TypeRelationsRequest) (graphprotocol.TypeRelationsResponse, error)
- func (service *Service) UnresolvedNamesAmong(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
- func (service *Service) UnresolvedReferencesFrom(ctx context.Context, request graphprotocol.UnresolvedReferencesRequest) (graphprotocol.UnresolvedReferencesResponse, error)
- func (service *Service) UnresolvedReferencesInFile(ctx context.Context, request graphprotocol.UnresolvedReferencesRequest) (graphprotocol.UnresolvedReferencesResponse, error)
- func (service *Service) Usages(ctx context.Context, request graphprotocol.EntityRequest) (graphprotocol.UsagesResponse, error)
- func (service *Service) ValidateContextSnapshots(ctx context.Context, snapshots []graphprotocol.ContextSnapshot) error
- func (service *Service) ValidateGenerations(ctx context.Context, scope graphprotocol.Scope, ...) error
- type Store
- type SymbolQuery
- type SymbolRef
Constants ¶
const MaxEntityQueryBytes = 4 << 20
MaxEntityQueryBytes bounds entity responses and each store result batch.
Variables ¶
var ErrGenerationChanged = errors.New("graph generation is unavailable or changed")
var (
ErrInvalidRequest = errors.New("invalid graph query")
)
var ErrQuerySize = errors.New("graph query response exceeds byte limit")
Functions ¶
func AddEntityQueryBytes ¶
AddEntityQueryBytes lets stores and traversal reject oversized facts before accumulating a result set. Final response encoding also checks JSON overhead.
func DiscoveryDocument ¶
func DiscoveryGrams ¶
Native GIN array containment supplies substring recall without pg_trgm, also for long lexemes. SQL rechecks full normalized fields after the gram probe.
func DiscoveryLexeme ¶
Search lexemes stay below PostgreSQL's 2047-byte limit. Long words retain an exact hash term and use the indexed gram path for prefix/substring retrieval.
func DiscoveryPatterns ¶
DiscoveryPatterns compiles gitignore-style rules to PostgreSQL/Go compatible regular expressions. Matching order and ignored ancestors are handled by SQL.
func DiscoveryTerms ¶
func GeneratedFilename ¶
func IdentifierSegments ¶
IdentifierSegments follows the pinned segment vocabulary, without discovery's diacritic folding or suffix stemming. Only twelve useful segments are retained.
func NormalizeDiscovery ¶
NormalizeDiscovery changes the disposable search projection only. Original protobuf facts and bytea selectors retain all bytes, including NUL.
func NormalizeFilePath ¶
NormalizeFilePath accepts repository-relative paths, including ./ and redundant separators. Parent traversal, absolute paths and platform separators are refused.
func PathPatterns ¶
PathPatterns preserves path case and Unicode for indexed-file filtering.
func SegmentWordVariants ¶
Types ¶
type AggregateFanQuery ¶
type AggregateFanQuery struct {
Snapshot QuerySnapshot
Values []string
Incoming bool
}
type AggregateLimitQuery ¶
type AggregateLimitQuery struct {
Snapshot QuerySnapshot
Limit int
}
type AggregateModuleQuery ¶
type AggregateModuleQuery struct {
Snapshot QuerySnapshot
Assignments []graphprotocol.ModuleAssignment
Kinds, PairKinds []int16
MinConfidence float64
Limit int
}
type AggregateModuleRow ¶
type AggregateNamesQuery ¶
type AggregateNamesQuery struct {
Snapshot QuerySnapshot
Values []string
Operation string
Limit int
}
type AggregateStore ¶
type AggregateStore interface {
AggregateStats(context.Context, QuerySnapshot) (graphprotocol.GraphStats, error)
QueryFan(context.Context, AggregateFanQuery) ([]graphprotocol.AggregateCount, error)
QueryNodeMetrics(context.Context, QuerySnapshot, string) (graphprotocol.NodeMetrics, error)
QueryAggregateNames(context.Context, AggregateNamesQuery) ([]string, error)
QueryTopDependedOn(context.Context, AggregateLimitQuery) ([]graphprotocol.DependedOn, error)
QueryTopCallingFiles(context.Context, AggregateLimitQuery) ([]graphprotocol.CallingFile, error)
QueryFileNodes(context.Context, QuerySnapshot, []string) ([]graphprotocol.Entity, error)
QueryModuleAggregation(context.Context, AggregateModuleQuery) ([]AggregateModuleRow, error)
QueryUnresolvedReferences(context.Context, AggregateUnresolvedQuery) ([]graphprotocol.UnresolvedReference, error)
}
type AggregateUnresolvedQuery ¶
type AggregateUnresolvedQuery struct {
Snapshot QuerySnapshot
Values []string
Path string
Limit int
}
type AnalysisEntityQuery ¶
type AnalysisEvidenceQuery ¶
type AnalysisEvidenceQuery struct {
Snapshot QuerySnapshot
Occurrences []string
Limit int
}
type AnalysisStore ¶
type AnalysisStore interface {
EntityStore
QueryAnalysisEntities(context.Context, AnalysisEntityQuery) ([]graphprotocol.Entity, error)
QueryAnalysisEvidence(context.Context, AnalysisEvidenceQuery) ([]graphprotocol.Evidence, error)
}
type DiscoveryQuery ¶
func ParseDiscoveryQuery ¶
func ParseDiscoveryQuery(raw string) DiscoveryQuery
type DiscoverySearch ¶
type DiscoverySearch struct {
Snapshots []QuerySnapshot
Query DiscoveryQuery
Terms []string
Groups [][]string
Symbols, Files, Deprioritize []string
ExplicitSymbols, ExplicitFiles []string
Limit int
Fuzzy bool
NoMultiterm bool
}
type DiscoveryStore ¶
type DiscoveryStore interface {
QueryDiscovery(context.Context, DiscoverySearch) ([]graphprotocol.DiscoveryMatch, error)
}
DiscoveryStore accepts the same trusted internal generation scope as EntityStore. Returned facts must be bounded before decoding; the service rechecks generation.
type EntityNeighbor ¶
type EntityNeighbor struct {
Entity graphprotocol.Entity
Edge graphprotocol.Evidence
}
type EntityNeighborQuery ¶
type EntityQuery ¶
type EntityQuery struct {
Snapshots []QuerySnapshot
Selector graphprotocol.EntitySelector
Offset, Limit int
}
type EntityStore ¶
type EntityStore interface {
EntityGenerations(context.Context, []QuerySnapshot) ([]graphprotocol.Generation, error)
QueryEntities(context.Context, EntityQuery) ([]graphprotocol.Entity, error)
EntityNeighbors(context.Context, EntityNeighborQuery) ([]EntityNeighbor, error)
}
EntityStore is the v2 query path; legacy manifests intentionally exclude v2. Callers supply authorized internal repository snapshots. Stores never expand that scope by resolving equal names or occurrences in other repositories.
type FileClassificationQuery ¶
type FileClassificationQuery struct {
Snapshots []QuerySnapshot
Paths []string
}
type FileClassificationRow ¶
type FileClassificationStore ¶
type FileClassificationStore interface {
ClassifyFiles(context.Context, FileClassificationQuery) ([]FileClassificationRow, error)
CountGeneratedFiles(context.Context, []QuerySnapshot) (generated, total int64, err error)
}
type FileCountStore ¶
type FileDependencyPairRow ¶
type FileDependencyQuery ¶
type FileDependencyQuery struct {
Snapshot QuerySnapshot
Paths []string
Direction string
MinConfidence float64
Limit int
}
type FileDependencyStore ¶
type FileDependencyStore interface {
QueryFileDependencyPairs(context.Context, FileDependencyQuery) ([]FileDependencyPairRow, error)
}
type FileStore ¶
type FileStore interface {
QueryFiles(context.Context, FileQuery) ([]graphprotocol.IndexedFile, error)
}
type HierarchyCount ¶ added in v0.6.1
type HierarchyCount struct {
Subtypes, Implementers int
}
type HierarchyCountQuery ¶ added in v0.6.1
type HierarchyCountQuery struct {
Snapshot QuerySnapshot
Occurrence string
}
type HierarchyStore ¶ added in v0.6.1
type HierarchyStore interface {
AnalysisStore
CountHierarchyChildren(context.Context, HierarchyCountQuery) (HierarchyCount, error)
}
type Neighbor ¶
type Neighbor struct {
Symbol graphprotocol.Symbol
Parent SymbolRef
Edge graphprotocol.Relationship
}
type NeighborQuery ¶
type QuerySnapshot ¶
type SegmentSearch ¶
type SegmentSearch struct {
Snapshots []QuerySnapshot
Variants, Words []string
Limit int
}
type SegmentStore ¶
type SegmentStore interface {
QuerySegments(context.Context, SegmentSearch) ([]graphprotocol.SegmentMatch, error)
}
type Service ¶
func (*Service) AffectedTests ¶
func (service *Service) AffectedTests(ctx context.Context, request graphprotocol.AffectedTestsRequest) (graphprotocol.AffectedTestsResponse, error)
func (*Service) AmbiguousReferencedNames ¶
func (service *Service) AmbiguousReferencedNames(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
func (*Service) CallGraph ¶
func (service *Service) CallGraph(ctx context.Context, request graphprotocol.EntityImpactRequest) (graphprotocol.SubgraphResponse, error)
func (*Service) CircularDependencies ¶
func (service *Service) CircularDependencies(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) Context ¶
func (service *Service) Context(ctx context.Context, request graphprotocol.ContextRequest) (graphprotocol.ContextResponse, error)
func (*Service) Discover ¶
func (service *Service) Discover(ctx context.Context, req graphprotocol.DiscoverRequest) (graphprotocol.DiscoverResponse, error)
func (*Service) Entities ¶
func (service *Service) Entities(ctx context.Context, request graphprotocol.EntitiesRequest) (graphprotocol.EntitiesResponse, error)
func (*Service) ExportedSymbols ¶
func (service *Service) ExportedSymbols(ctx context.Context, request graphprotocol.FileEntityRequest) (graphprotocol.EntitiesResponse, error)
func (*Service) FanIn ¶
func (service *Service) FanIn(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateCountsResponse, error)
func (*Service) FanOut ¶
func (service *Service) FanOut(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateCountsResponse, error)
func (*Service) FileClassifications ¶
func (service *Service) FileClassifications(ctx context.Context, request graphprotocol.FileClassificationRequest) (graphprotocol.FileClassificationResponse, error)
func (*Service) FileDependencies ¶
func (service *Service) FileDependencies(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) FileDependencyPairs ¶
func (service *Service) FileDependencyPairs(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) FileDependentCounts ¶
func (service *Service) FileDependentCounts(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) FileDependents ¶
func (service *Service) FileDependents(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) FileNodes ¶
func (service *Service) FileNodes(ctx context.Context, request graphprotocol.FileNodesRequest) (graphprotocol.EntitiesResponse, error)
func (*Service) FileReachCounts ¶
func (service *Service) FileReachCounts(ctx context.Context, request graphprotocol.FileDependencyRequest) (graphprotocol.FileDependencyResponse, error)
func (*Service) FilteredSubgraph ¶
func (service *Service) FilteredSubgraph(ctx context.Context, request graphprotocol.FilteredSubgraphRequest) (graphprotocol.SubgraphResponse, error)
func (*Service) FindByQualifiedName ¶
func (service *Service) FindByQualifiedName(ctx context.Context, request graphprotocol.QualifiedNameRequest) (graphprotocol.EntitiesResponse, error)
func (*Service) GeneratedFileCount ¶
func (service *Service) GeneratedFileCount(ctx context.Context, request graphprotocol.GeneratedFileCountRequest) (graphprotocol.GeneratedFileCountResponse, error)
func (*Service) GraphStats ¶
func (service *Service) GraphStats(ctx context.Context, scope graphprotocol.Scope) (graphprotocol.GraphStatsResponse, error)
func (*Service) Impact ¶
func (service *Service) Impact(ctx context.Context, request graphprotocol.ImpactRequest) (graphprotocol.ImpactResponse, error)
func (*Service) ImpactRadius ¶
func (service *Service) ImpactRadius(ctx context.Context, request graphprotocol.EntityImpactRequest) (graphprotocol.SubgraphResponse, error)
func (*Service) IndexedFiles ¶
func (service *Service) IndexedFiles(ctx context.Context, req graphprotocol.FilesRequest) (graphprotocol.FilesResponse, error)
func (*Service) LanguagesWithExports ¶
func (service *Service) LanguagesWithExports(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
func (*Service) ModuleAggregation ¶
func (service *Service) ModuleAggregation(ctx context.Context, request graphprotocol.ModuleAggregationRequest) (graphprotocol.ModuleAggregationResponse, error)
func (*Service) ModuleStructure ¶
func (service *Service) ModuleStructure(ctx context.Context, request graphprotocol.ScopeRequest) (graphprotocol.ModuleStructureResponse, error)
func (*Service) NodeMetrics ¶
func (service *Service) NodeMetrics(ctx context.Context, request graphprotocol.NodeMetricsRequest) (graphprotocol.NodeMetricsResponse, error)
func (*Service) RelevantContext ¶
func (service *Service) RelevantContext(ctx context.Context, request graphprotocol.RelevantContextRequest) (graphprotocol.RelevantContextResponse, error)
RelevantContext composes bounded discovery and traversal in one immutable generation. It preserves edge occurrences even when their triples repeat.
func (*Service) SegmentMatches ¶
func (service *Service) SegmentMatches(ctx context.Context, req graphprotocol.SegmentRequest) (graphprotocol.SegmentResponse, error)
func (*Service) SymbolCalls ¶ added in v0.7.0
func (service *Service) SymbolCalls(ctx context.Context, request graphprotocol.SymbolCallsRequest) (graphprotocol.SymbolResponse, error)
SymbolCalls lists the callers (incoming) or callees (outgoing) of every definition of a name, one section per distinct definition. Each neighbor appears once, with the first edge that reached it; limit bounds each section (default 20, 1-100) and Truncated reports that more exist.
func (*Service) SymbolImpact ¶ added in v0.7.0
func (service *Service) SymbolImpact(ctx context.Context, request graphprotocol.SymbolImpactRequest) (graphprotocol.SymbolResponse, error)
SymbolImpact merges each distinct definition's impact radius (default depth 2, 1-10): entities in first-reached order, edges once per source, target and kind.
func (*Service) TopCallingFiles ¶
func (service *Service) TopCallingFiles(ctx context.Context, request graphprotocol.AggregateLimitRequest) (graphprotocol.TopCallingFilesResponse, error)
func (*Service) TopDependedOn ¶
func (service *Service) TopDependedOn(ctx context.Context, request graphprotocol.AggregateLimitRequest) (graphprotocol.TopDependedOnResponse, error)
func (*Service) Trace ¶
func (service *Service) Trace(ctx context.Context, request graphprotocol.TraceRequest) (graphprotocol.TraceResponse, error)
func (*Service) Traverse ¶
func (service *Service) Traverse(ctx context.Context, request graphprotocol.TraverseRequest) (graphprotocol.TraverseResponse, error)
Traverse visits entities once while retaining every bounded edge occurrence, including parallel edges, self edges and edges back into an already seen cycle. Edge endpoints always preserve the producer's original direction.
func (*Service) TypeHierarchy ¶ added in v0.6.1
func (service *Service) TypeHierarchy(ctx context.Context, request graphprotocol.TypeHierarchyRequest) (graphprotocol.TypeHierarchyResponse, error)
func (*Service) TypeRelations ¶ added in v0.6.1
func (service *Service) TypeRelations(ctx context.Context, request graphprotocol.TypeRelationsRequest) (graphprotocol.TypeRelationsResponse, error)
func (*Service) UnresolvedNamesAmong ¶
func (service *Service) UnresolvedNamesAmong(ctx context.Context, request graphprotocol.AggregateValuesRequest) (graphprotocol.AggregateNamesResponse, error)
func (*Service) UnresolvedReferencesFrom ¶
func (service *Service) UnresolvedReferencesFrom(ctx context.Context, request graphprotocol.UnresolvedReferencesRequest) (graphprotocol.UnresolvedReferencesResponse, error)
func (*Service) UnresolvedReferencesInFile ¶
func (service *Service) UnresolvedReferencesInFile(ctx context.Context, request graphprotocol.UnresolvedReferencesRequest) (graphprotocol.UnresolvedReferencesResponse, error)
func (*Service) Usages ¶
func (service *Service) Usages(ctx context.Context, request graphprotocol.EntityRequest) (graphprotocol.UsagesResponse, error)
func (*Service) ValidateContextSnapshots ¶
func (service *Service) ValidateContextSnapshots(ctx context.Context, snapshots []graphprotocol.ContextSnapshot) error
ValidateContextSnapshots checks the actual legacy uploads captured before the Context query, including a replacement at the same indexed commit.
func (*Service) ValidateGenerations ¶
func (service *Service) ValidateGenerations(ctx context.Context, scope graphprotocol.Scope, expected []graphprotocol.Generation) error
ValidateGenerations closes a composition after source I/O. The scope must still be authorized by the caller; generation IDs are public GitHub repository IDs.
type Store ¶
type Store interface {
Health(context.Context) error
Manifests(context.Context) (map[int64]graphartifact.Manifest, error)
Symbols(context.Context, SymbolQuery) ([]graphprotocol.Symbol, error)
Neighbors(context.Context, NeighborQuery) ([]Neighbor, error)
}
type SymbolQuery ¶
type SymbolQuery struct {
Snapshots []QuerySnapshot
UID, Name string
FilePath, Kind string
Limit int
}