MCPcopy Create free account
hub / github.com/Debian/dcs / query

Method query

internal/sourcebackend/sourcebackend.go:276–289  ·  view source on GitHub ↗
(query *index.Query)

Source from the content-addressed store, hash-verified

274 }
275 return possible, nil
276}
277
278func hasFoldCase(re *syntax.Regexp) bool {
279 if re.Flags&syntax.FoldCase != 0 {
280 return true
281 }
282 return slices.ContainsFunc(re.Sub, hasFoldCase)
283}
284
285type SearchSink interface {
286 // Match is called for each found match.
287 // Returning an error stops the search.
288 Match(*sourcebackendpb.Match) error
289
290 // Returning an error stops the search.
291 Progress(filesProcessed, filesTotal int, readBytes uint64) error
292

Callers 1

SearchMethod · 0.95

Calls 2

LookupMethod · 0.80
PostingQueryMethod · 0.45

Tested by

no test coverage detected