package
0.0.0-20250312033235-bd4f568112dc
Repository: https://github.com/sourcegraph/src-cli.git
Documentation: pkg.go.dev

# Functions

NewRequest returns an http.Request against the streaming API for query.
No description provided by the author
Search calls the streaming search endpoint and uses decoder to decode the response body.

# Constants

No description provided by the author
No description provided by the author
DocumentMatchLimit is when we found too many matches in a document, so we stopped searching it.
ExcludedArchive is when we did not search a repository because it is archived.
ExcludedFork is when we did not search a repository because it is a fork.
No description provided by the author
No description provided by the author
RepositoryCloning is when we could not search a repository because it is not cloned.
RepositoryLimit is when we did not search a repository because the set of repositories to search was too large.
RepositoryMissing is when we could not search a repository because it is not cloned and we failed to find it on the remote code host.
No description provided by the author
No description provided by the author
ShardMatchLimit is when we found too many matches in a shard/repository, so we stopped searching it.
ShardTimeout is when we ran out of time before searching a shard/repository.
No description provided by the author

# Structs

No description provided by the author
Decoder decodes streaming events from a Server Sent Event stream.
EventAlert is GQL.SearchAlert.
EventCommitMatch is the generic results interface from GQL.
EventContentMatch is a subset of zoekt.FileMatch for our Event API.
EventError emulates a JavaScript error with a message property as is returned when the search encounters an error.
EventFilter is a suggestion for a search filter.
EventLineMatch is a subset of zoekt.LineMatch for our Event API.
EventPathMatch is a subset of zoekt.FileMatch for our Event API.
EventRepoMatch is a subset of zoekt.FileMatch for our Event API.
EventSymbolMatch is EventFileMatch but with Symbols instead of LineMatches.
No description provided by the author
Opts contains the search options supported by Search.
Progress is an aggregate type representing a progress update.
ProposedQuery is a suggested query to run when we emit an alert.
No description provided by the author
Skipped is a description of shards or documents that were skipped.
SkippedSuggested is a query to suggest to the user to resolve the reason for skipping.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

EventMatch is an interface which only the top level match event types implement.

# Type aliases

No description provided by the author
SkippedReason is an enum for Skipped.Reason.
SkippedSeverity is an enum for Skipped.Severity.