sourcegraph/cmd
Julie Tibshirani 817c47b1a7
Searcher: pull out 'matcher' interface (#59040)
Currently searcher can only handle patterns with a single atom. We'd like to update searcher to handle AND/ OR patterns directly.

This refactor takes us a step towards being able to natively handle AND/ OR patterns by refactoring the way we match files. It pulls out a `matcher` interface, which for now just has a single implementation (`regexMatcher`), but eventually can represent nested matchers combined through AND/ OR. Even without this goal, I think the refactor stands on its own and helps clean up the logic.

Specific changes:
* Lots of renames to make things clearer, like `readerGrep` -> `regexMatcher`
* Define `matcher` interface, which finds matches given file contents, and related logic into new file
* Pull `pathMatcher` out of `matcher`, since it's really its own top-level concept
* Move all file content and buffer management to `search_regex`. This lets each `matcher` object become threadsafe, and avoids the need for copying them for every goroutine.
2023-12-18 12:37:07 -08:00
..
batcheshelper Move batcheshelper out of enterprise (#54923) 2023-07-13 19:46:09 +02:00
blobstore aspect workflows: add initial aspect workflow yaml (#56569) 2023-11-24 11:52:17 +02:00
bundled-executor Build bundled-executor with shell build tag again (#55792) 2023-08-11 21:39:32 +02:00
cody-gateway Treat dotcom-user as dotcom user (duh) (#59054) 2023-12-18 09:52:53 +00:00
embeddings Return the correct error code (#58851) 2023-12-09 17:09:52 +00:00
executor Chore: clean up dead code (#58280) 2023-11-14 14:29:03 -07:00
executor-kubernetes Move executor-kubernetes out of enterprise (#56449) 2023-09-08 16:24:05 +02:00
frontend search: expose GitHub/GitLab topics in UI (#58927) 2023-12-18 09:12:14 +01:00
gitserver chore: remove gotest.tools/assert (#58899) 2023-12-12 12:01:12 -08:00
loadtest logger: update log lib and remove use of description (#57690) 2023-10-18 17:29:08 +02:00
migrator bzl: rework how we populate the database schemas for migrator (#57591) 2023-10-23 15:40:09 +02:00
msp-example msp/runtime: provide query params to healthcheck (#58868) 2023-12-12 12:00:53 -08:00
pings remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
precise-code-intel-worker remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
repo-updater purge worker: fix bug in gRPC handler and bump log level (#58842) 2023-12-08 10:11:18 +00:00
searcher Searcher: pull out 'matcher' interface (#59040) 2023-12-18 12:37:07 -08:00
server build: add buildifier check to Aspect Workflows (#58566) 2023-11-27 14:58:01 +02:00
sourcegraph remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
symbols Cleanup: use new go 1.21 features (#58617) 2023-11-28 13:49:38 -07:00
telemetry-gateway telemetry-gateway: do not accept remote spans (#59021) 2023-12-15 19:15:16 +00:00
worker graphqlbackend/telemetry: add query for recently exported events (#57029) 2023-12-15 12:43:45 -08:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.