Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWebserverServiceServer(s grpc.ServiceRegistrar, srv WebserverServiceServer)
- type And
- type Boost
- type Branch
- type BranchRepos
- func (*BranchRepos) Descriptor() ([]byte, []int)deprecated
- func (x *BranchRepos) GetBranch() string
- func (x *BranchRepos) GetRepos() []byte
- func (*BranchRepos) ProtoMessage()
- func (x *BranchRepos) ProtoReflect() protoreflect.Message
- func (x *BranchRepos) Reset()
- func (x *BranchRepos) String() string
- type BranchesRepos
- type ChunkMatch
- func (*ChunkMatch) Descriptor() ([]byte, []int)deprecated
- func (x *ChunkMatch) GetContent() []byte
- func (x *ChunkMatch) GetContentStart() *Location
- func (x *ChunkMatch) GetDebugScore() string
- func (x *ChunkMatch) GetFileName() bool
- func (x *ChunkMatch) GetRanges() []*Range
- func (x *ChunkMatch) GetScore() float64
- func (x *ChunkMatch) GetSymbolInfo() []*SymbolInfo
- func (*ChunkMatch) ProtoMessage()
- func (x *ChunkMatch) ProtoReflect() protoreflect.Message
- func (x *ChunkMatch) Reset()
- func (x *ChunkMatch) String() string
- type FileMatch
- func (*FileMatch) Descriptor() ([]byte, []int)deprecated
- func (x *FileMatch) GetBranches() []string
- func (x *FileMatch) GetChecksum() []byte
- func (x *FileMatch) GetChunkMatches() []*ChunkMatch
- func (x *FileMatch) GetContent() []byte
- func (x *FileMatch) GetDebug() string
- func (x *FileMatch) GetFileName() []byte
- func (x *FileMatch) GetLanguage() string
- func (x *FileMatch) GetLineMatches() []*LineMatch
- func (x *FileMatch) GetRepository() string
- func (x *FileMatch) GetRepositoryId() uint32
- func (x *FileMatch) GetRepositoryPriority() float64
- func (x *FileMatch) GetScore() float64
- func (x *FileMatch) GetSubRepositoryName() string
- func (x *FileMatch) GetSubRepositoryPath() string
- func (x *FileMatch) GetVersion() string
- func (*FileMatch) ProtoMessage()
- func (x *FileMatch) ProtoReflect() protoreflect.Message
- func (x *FileMatch) Reset()
- func (x *FileMatch) String() string
- type FileNameSet
- type FlushReason
- func (FlushReason) Descriptor() protoreflect.EnumDescriptor
- func (x FlushReason) Enum() *FlushReason
- func (FlushReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlushReason) Number() protoreflect.EnumNumber
- func (x FlushReason) String() string
- func (FlushReason) Type() protoreflect.EnumType
- type IndexMetadata
- func (*IndexMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *IndexMetadata) GetId() string
- func (x *IndexMetadata) GetIndexFeatureVersion() int64
- func (x *IndexMetadata) GetIndexFormatVersion() int64
- func (x *IndexMetadata) GetIndexMinReaderVersion() int64
- func (x *IndexMetadata) GetIndexTime() *timestamppb.Timestamp
- func (x *IndexMetadata) GetLanguageMap() map[string]uint32
- func (x *IndexMetadata) GetPlainAscii() bool
- func (x *IndexMetadata) GetZoektVersion() string
- func (*IndexMetadata) ProtoMessage()
- func (x *IndexMetadata) ProtoReflect() protoreflect.Message
- func (x *IndexMetadata) Reset()
- func (x *IndexMetadata) String() string
- type Language
- type LineFragmentMatch
- func (*LineFragmentMatch) Descriptor() ([]byte, []int)deprecated
- func (x *LineFragmentMatch) GetLineOffset() int64
- func (x *LineFragmentMatch) GetMatchLength() int64
- func (x *LineFragmentMatch) GetOffset() uint32
- func (x *LineFragmentMatch) GetSymbolInfo() *SymbolInfo
- func (*LineFragmentMatch) ProtoMessage()
- func (x *LineFragmentMatch) ProtoReflect() protoreflect.Message
- func (x *LineFragmentMatch) Reset()
- func (x *LineFragmentMatch) String() string
- type LineMatch
- func (*LineMatch) Descriptor() ([]byte, []int)deprecated
- func (x *LineMatch) GetAfter() []byte
- func (x *LineMatch) GetBefore() []byte
- func (x *LineMatch) GetDebugScore() string
- func (x *LineMatch) GetFileName() bool
- func (x *LineMatch) GetLine() []byte
- func (x *LineMatch) GetLineEnd() int64
- func (x *LineMatch) GetLineFragments() []*LineFragmentMatch
- func (x *LineMatch) GetLineNumber() int64
- func (x *LineMatch) GetLineStart() int64
- func (x *LineMatch) GetScore() float64
- func (*LineMatch) ProtoMessage()
- func (x *LineMatch) ProtoReflect() protoreflect.Message
- func (x *LineMatch) Reset()
- func (x *LineMatch) String() string
- type ListOptions
- type ListOptions_RepoListField
- func (ListOptions_RepoListField) Descriptor() protoreflect.EnumDescriptor
- func (x ListOptions_RepoListField) Enum() *ListOptions_RepoListField
- func (ListOptions_RepoListField) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListOptions_RepoListField) Number() protoreflect.EnumNumber
- func (x ListOptions_RepoListField) String() string
- func (ListOptions_RepoListField) Type() protoreflect.EnumType
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetOpts() *ListOptions
- func (x *ListRequest) GetQuery() *Q
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCrashes() int64
- func (x *ListResponse) GetRepos() []*RepoListEntry
- func (x *ListResponse) GetReposMap() map[uint32]*MinimalRepoListEntry
- func (x *ListResponse) GetStats() *RepoStats
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetByteOffset() uint32
- func (x *Location) GetColumn() uint32
- func (x *Location) GetLineNumber() uint32
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type MinimalRepoListEntry
- func (*MinimalRepoListEntry) Descriptor() ([]byte, []int)deprecated
- func (x *MinimalRepoListEntry) GetBranches() []*RepositoryBranch
- func (x *MinimalRepoListEntry) GetHasSymbols() bool
- func (x *MinimalRepoListEntry) GetIndexTimeUnix() int64
- func (*MinimalRepoListEntry) ProtoMessage()
- func (x *MinimalRepoListEntry) ProtoReflect() protoreflect.Message
- func (x *MinimalRepoListEntry) Reset()
- func (x *MinimalRepoListEntry) String() string
- type Not
- type Or
- type Progress
- type Q
- func (*Q) Descriptor() ([]byte, []int)deprecated
- func (x *Q) GetAnd() *And
- func (x *Q) GetBoost() *Boost
- func (x *Q) GetBranch() *Branch
- func (x *Q) GetBranchesRepos() *BranchesRepos
- func (x *Q) GetConst() bool
- func (x *Q) GetFileNameSet() *FileNameSet
- func (x *Q) GetLanguage() *Language
- func (x *Q) GetNot() *Not
- func (x *Q) GetOr() *Or
- func (m *Q) GetQuery() isQ_Query
- func (x *Q) GetRawConfig() *RawConfig
- func (x *Q) GetRegexp() *Regexp
- func (x *Q) GetRepo() *Repo
- func (x *Q) GetRepoIds() *RepoIds
- func (x *Q) GetRepoRegexp() *RepoRegexp
- func (x *Q) GetRepoSet() *RepoSet
- func (x *Q) GetSubstring() *Substring
- func (x *Q) GetSymbol() *Symbol
- func (x *Q) GetType() *Type
- func (*Q) ProtoMessage()
- func (x *Q) ProtoReflect() protoreflect.Message
- func (x *Q) Reset()
- func (x *Q) String() string
- type Q_And
- type Q_Boost
- type Q_Branch
- type Q_BranchesRepos
- type Q_Const
- type Q_FileNameSet
- type Q_Language
- type Q_Not
- type Q_Or
- type Q_RawConfig
- type Q_Regexp
- type Q_Repo
- type Q_RepoIds
- type Q_RepoRegexp
- type Q_RepoSet
- type Q_Substring
- type Q_Symbol
- type Q_Type
- type Range
- type RawConfig
- type RawConfig_Flag
- func (RawConfig_Flag) Descriptor() protoreflect.EnumDescriptor
- func (x RawConfig_Flag) Enum() *RawConfig_Flag
- func (RawConfig_Flag) EnumDescriptor() ([]byte, []int)deprecated
- func (x RawConfig_Flag) Number() protoreflect.EnumNumber
- func (x RawConfig_Flag) String() string
- func (RawConfig_Flag) Type() protoreflect.EnumType
- type Regexp
- func (*Regexp) Descriptor() ([]byte, []int)deprecated
- func (x *Regexp) GetCaseSensitive() bool
- func (x *Regexp) GetContent() bool
- func (x *Regexp) GetFileName() bool
- func (x *Regexp) GetRegexp() string
- func (*Regexp) ProtoMessage()
- func (x *Regexp) ProtoReflect() protoreflect.Message
- func (x *Regexp) Reset()
- func (x *Regexp) String() string
- type Repo
- type RepoIds
- type RepoListEntry
- func (*RepoListEntry) Descriptor() ([]byte, []int)deprecated
- func (x *RepoListEntry) GetIndexMetadata() *IndexMetadata
- func (x *RepoListEntry) GetRepository() *Repository
- func (x *RepoListEntry) GetStats() *RepoStats
- func (*RepoListEntry) ProtoMessage()
- func (x *RepoListEntry) ProtoReflect() protoreflect.Message
- func (x *RepoListEntry) Reset()
- func (x *RepoListEntry) String() string
- type RepoRegexp
- type RepoSet
- type RepoStats
- func (*RepoStats) Descriptor() ([]byte, []int)deprecated
- func (x *RepoStats) GetContentBytes() int64
- func (x *RepoStats) GetDefaultBranchNewLinesCount() uint64
- func (x *RepoStats) GetDocuments() int64
- func (x *RepoStats) GetIndexBytes() int64
- func (x *RepoStats) GetNewLinesCount() uint64
- func (x *RepoStats) GetOtherBranchesNewLinesCount() uint64
- func (x *RepoStats) GetRepos() int64
- func (x *RepoStats) GetShards() int64
- func (*RepoStats) ProtoMessage()
- func (x *RepoStats) ProtoReflect() protoreflect.Message
- func (x *RepoStats) Reset()
- func (x *RepoStats) String() string
- type Repository
- func (*Repository) Descriptor() ([]byte, []int)deprecated
- func (x *Repository) GetBranches() []*RepositoryBranch
- func (x *Repository) GetCommitUrlTemplate() string
- func (x *Repository) GetFileTombstones() []string
- func (x *Repository) GetFileUrlTemplate() string
- func (x *Repository) GetHasSymbols() bool
- func (x *Repository) GetId() uint32
- func (x *Repository) GetIndexOptions() string
- func (x *Repository) GetLatestCommitDate() *timestamppb.Timestamp
- func (x *Repository) GetLineFragmentTemplate() string
- func (x *Repository) GetName() string
- func (x *Repository) GetPriority() float64
- func (x *Repository) GetRank() uint32
- func (x *Repository) GetRawConfig() map[string]string
- func (x *Repository) GetSource() string
- func (x *Repository) GetSubRepoMap() map[string]*Repository
- func (x *Repository) GetTombstone() bool
- func (x *Repository) GetUrl() string
- func (*Repository) ProtoMessage()
- func (x *Repository) ProtoReflect() protoreflect.Message
- func (x *Repository) Reset()
- func (x *Repository) String() string
- type RepositoryBranch
- func (*RepositoryBranch) Descriptor() ([]byte, []int)deprecated
- func (x *RepositoryBranch) GetName() string
- func (x *RepositoryBranch) GetVersion() string
- func (*RepositoryBranch) ProtoMessage()
- func (x *RepositoryBranch) ProtoReflect() protoreflect.Message
- func (x *RepositoryBranch) Reset()
- func (x *RepositoryBranch) String() string
- type SearchOptions
- func (*SearchOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SearchOptions) GetChunkMatches() bool
- func (x *SearchOptions) GetDebugScore() bool
- func (x *SearchOptions) GetDocumentRanksWeight() float64
- func (x *SearchOptions) GetEstimateDocCount() bool
- func (x *SearchOptions) GetExcludeRepoUrlsAndLineFragments() bool
- func (x *SearchOptions) GetFlushWallTime() *durationpb.Duration
- func (x *SearchOptions) GetMaxDocDisplayCount() int64
- func (x *SearchOptions) GetMaxMatchDisplayCount() int64
- func (x *SearchOptions) GetMaxWallTime() *durationpb.Duration
- func (x *SearchOptions) GetNumContextLines() int64
- func (x *SearchOptions) GetSawpHeadInBranchesWithRevParsedName() bool
- func (x *SearchOptions) GetShardMaxMatchCount() int64
- func (x *SearchOptions) GetShardRepoMaxMatchCount() int64
- func (x *SearchOptions) GetTotalMaxMatchCount() int64
- func (x *SearchOptions) GetTrace() bool
- func (x *SearchOptions) GetUseDocumentRanks() bool
- func (x *SearchOptions) GetUseKeywordScoring() bool
- func (x *SearchOptions) GetWhole() bool
- func (*SearchOptions) ProtoMessage()
- func (x *SearchOptions) ProtoReflect() protoreflect.Message
- func (x *SearchOptions) Reset()
- func (x *SearchOptions) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetOpts() *SearchOptions
- func (x *SearchRequest) GetQuery() *Q
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetFiles() []*FileMatch
- func (x *SearchResponse) GetProgress() *Progress
- func (x *SearchResponse) GetStats() *Stats
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type Stats
- func (*Stats) Descriptor() ([]byte, []int)deprecated
- func (x *Stats) GetContentBytesLoaded() int64
- func (x *Stats) GetCrashes() int64
- func (x *Stats) GetDuration() *durationpb.Duration
- func (x *Stats) GetFileCount() int64
- func (x *Stats) GetFilesConsidered() int64
- func (x *Stats) GetFilesLoaded() int64
- func (x *Stats) GetFilesSkipped() int64
- func (x *Stats) GetFlushReason() FlushReason
- func (x *Stats) GetIndexBytesLoaded() int64
- func (x *Stats) GetMatchCount() int64
- func (x *Stats) GetMatchTreeConstruction() *durationpb.Duration
- func (x *Stats) GetMatchTreeSearch() *durationpb.Duration
- func (x *Stats) GetNgramLookups() int64
- func (x *Stats) GetNgramMatches() int64
- func (x *Stats) GetRegexpsConsidered() int64
- func (x *Stats) GetShardFilesConsidered() int64
- func (x *Stats) GetShardsScanned() int64
- func (x *Stats) GetShardsSkipped() int64
- func (x *Stats) GetShardsSkippedFilter() int64
- func (x *Stats) GetWait() *durationpb.Duration
- func (*Stats) ProtoMessage()
- func (x *Stats) ProtoReflect() protoreflect.Message
- func (x *Stats) Reset()
- func (x *Stats) String() string
- type StreamSearchRequest
- func (*StreamSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamSearchRequest) GetRequest() *SearchRequest
- func (*StreamSearchRequest) ProtoMessage()
- func (x *StreamSearchRequest) ProtoReflect() protoreflect.Message
- func (x *StreamSearchRequest) Reset()
- func (x *StreamSearchRequest) String() string
- type StreamSearchResponse
- func (*StreamSearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamSearchResponse) GetResponseChunk() *SearchResponse
- func (*StreamSearchResponse) ProtoMessage()
- func (x *StreamSearchResponse) ProtoReflect() protoreflect.Message
- func (x *StreamSearchResponse) Reset()
- func (x *StreamSearchResponse) String() string
- type Substring
- func (*Substring) Descriptor() ([]byte, []int)deprecated
- func (x *Substring) GetCaseSensitive() bool
- func (x *Substring) GetContent() bool
- func (x *Substring) GetFileName() bool
- func (x *Substring) GetPattern() string
- func (*Substring) ProtoMessage()
- func (x *Substring) ProtoReflect() protoreflect.Message
- func (x *Substring) Reset()
- func (x *Substring) String() string
- type Symbol
- type SymbolInfo
- func (*SymbolInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SymbolInfo) GetKind() string
- func (x *SymbolInfo) GetParent() string
- func (x *SymbolInfo) GetParentKind() string
- func (x *SymbolInfo) GetSym() string
- func (*SymbolInfo) ProtoMessage()
- func (x *SymbolInfo) ProtoReflect() protoreflect.Message
- func (x *SymbolInfo) Reset()
- func (x *SymbolInfo) String() string
- type Type
- type Type_Kind
- type UnimplementedWebserverServiceServer
- func (UnimplementedWebserverServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedWebserverServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- func (UnimplementedWebserverServiceServer) StreamSearch(*StreamSearchRequest, WebserverService_StreamSearchServer) error
- type UnsafeWebserverServiceServer
- type WebserverServiceClient
- type WebserverServiceServer
- type WebserverService_StreamSearchClient
- type WebserverService_StreamSearchServer
Constants ¶
const ( WebserverService_Search_FullMethodName = "/zoekt.webserver.v1.WebserverService/Search" WebserverService_StreamSearch_FullMethodName = "/zoekt.webserver.v1.WebserverService/StreamSearch" WebserverService_List_FullMethodName = "/zoekt.webserver.v1.WebserverService/List" )
Variables ¶
var ( RawConfig_Flag_name = map[int32]string{ 0: "FLAG_UNKNOWN_UNSPECIFIED", 1: "FLAG_ONLY_PUBLIC", 2: "FLAG_ONLY_PRIVATE", 4: "FLAG_ONLY_FORKS", 8: "FLAG_NO_FORKS", 16: "FLAG_ONLY_ARCHIVED", 32: "FLAG_NO_ARCHIVED", } RawConfig_Flag_value = map[string]int32{ "FLAG_UNKNOWN_UNSPECIFIED": 0, "FLAG_ONLY_PUBLIC": 1, "FLAG_ONLY_PRIVATE": 2, "FLAG_ONLY_FORKS": 4, "FLAG_NO_FORKS": 8, "FLAG_ONLY_ARCHIVED": 16, "FLAG_NO_ARCHIVED": 32, } )
Enum value maps for RawConfig_Flag.
var ( Type_Kind_name = map[int32]string{ 0: "KIND_UNKNOWN_UNSPECIFIED", 1: "KIND_FILE_MATCH", 2: "KIND_FILE_NAME", 3: "KIND_REPO", } Type_Kind_value = map[string]int32{ "KIND_UNKNOWN_UNSPECIFIED": 0, "KIND_FILE_MATCH": 1, "KIND_FILE_NAME": 2, "KIND_REPO": 3, } )
Enum value maps for Type_Kind.
var ( FlushReason_name = map[int32]string{ 0: "FLUSH_REASON_UNKNOWN_UNSPECIFIED", 1: "FLUSH_REASON_TIMER_EXPIRED", 2: "FLUSH_REASON_FINAL_FLUSH", 3: "FLUSH_REASON_MAX_SIZE", } FlushReason_value = map[string]int32{ "FLUSH_REASON_UNKNOWN_UNSPECIFIED": 0, "FLUSH_REASON_TIMER_EXPIRED": 1, "FLUSH_REASON_FINAL_FLUSH": 2, "FLUSH_REASON_MAX_SIZE": 3, } )
Enum value maps for FlushReason.
var ( ListOptions_RepoListField_name = map[int32]string{ 0: "REPO_LIST_FIELD_UNKNOWN_UNSPECIFIED", 1: "REPO_LIST_FIELD_REPOS", 3: "REPO_LIST_FIELD_REPOS_MAP", } ListOptions_RepoListField_value = map[string]int32{ "REPO_LIST_FIELD_UNKNOWN_UNSPECIFIED": 0, "REPO_LIST_FIELD_REPOS": 1, "REPO_LIST_FIELD_REPOS_MAP": 3, } )
Enum value maps for ListOptions_RepoListField.
var File_zoekt_webserver_v1_query_proto protoreflect.FileDescriptor
var File_zoekt_webserver_v1_webserver_proto protoreflect.FileDescriptor
var WebserverService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "zoekt.webserver.v1.WebserverService", HandlerType: (*WebserverServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Search", Handler: _WebserverService_Search_Handler, }, { MethodName: "List", Handler: _WebserverService_List_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamSearch", Handler: _WebserverService_StreamSearch_Handler, ServerStreams: true, }, }, Metadata: "zoekt/webserver/v1/webserver.proto", }
WebserverService_ServiceDesc is the grpc.ServiceDesc for WebserverService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebserverServiceServer ¶
func RegisterWebserverServiceServer(s grpc.ServiceRegistrar, srv WebserverServiceServer)
Types ¶
type And ¶
type And struct { Children []*Q `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
And is matched when all its children are.
func (*And) Descriptor
deprecated
func (*And) GetChildren ¶
func (*And) ProtoMessage ¶
func (*And) ProtoMessage()
func (*And) ProtoReflect ¶
func (x *And) ProtoReflect() protoreflect.Message
type Boost ¶
type Boost struct { Child *Q `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` Boost float64 `protobuf:"fixed64,2,opt,name=boost,proto3" json:"boost,omitempty"` // contains filtered or unexported fields }
Boost multiplies the score of its child by the boost factor.
func (*Boost) Descriptor
deprecated
func (*Boost) ProtoMessage ¶
func (*Boost) ProtoMessage()
func (*Boost) ProtoReflect ¶
func (x *Boost) ProtoReflect() protoreflect.Message
type Branch ¶
type Branch struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // exact is true if we want to Pattern to equal branch. Exact bool `protobuf:"varint,2,opt,name=exact,proto3" json:"exact,omitempty"` // contains filtered or unexported fields }
Branch limits search to a specific branch.
func (*Branch) Descriptor
deprecated
func (*Branch) GetPattern ¶
func (*Branch) ProtoMessage ¶
func (*Branch) ProtoMessage()
func (*Branch) ProtoReflect ¶
func (x *Branch) ProtoReflect() protoreflect.Message
type BranchRepos ¶
type BranchRepos struct { Branch string `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"` // a serialized roaring bitmap of the target repo ids Repos []byte `protobuf:"bytes,2,opt,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
BranchRepos is a (branch, sourcegraph repo ids bitmap) tuple. It is a Sourcegraph addition.
func (*BranchRepos) Descriptor
deprecated
func (*BranchRepos) Descriptor() ([]byte, []int)
Deprecated: Use BranchRepos.ProtoReflect.Descriptor instead.
func (*BranchRepos) GetBranch ¶
func (x *BranchRepos) GetBranch() string
func (*BranchRepos) GetRepos ¶
func (x *BranchRepos) GetRepos() []byte
func (*BranchRepos) ProtoMessage ¶
func (*BranchRepos) ProtoMessage()
func (*BranchRepos) ProtoReflect ¶
func (x *BranchRepos) ProtoReflect() protoreflect.Message
func (*BranchRepos) Reset ¶
func (x *BranchRepos) Reset()
func (*BranchRepos) String ¶
func (x *BranchRepos) String() string
type BranchesRepos ¶
type BranchesRepos struct { List []*BranchRepos `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
BranchesRepos is a slice of BranchRepos to match.
func (*BranchesRepos) Descriptor
deprecated
func (*BranchesRepos) Descriptor() ([]byte, []int)
Deprecated: Use BranchesRepos.ProtoReflect.Descriptor instead.
func (*BranchesRepos) GetList ¶
func (x *BranchesRepos) GetList() []*BranchRepos
func (*BranchesRepos) ProtoMessage ¶
func (*BranchesRepos) ProtoMessage()
func (*BranchesRepos) ProtoReflect ¶
func (x *BranchesRepos) ProtoReflect() protoreflect.Message
func (*BranchesRepos) Reset ¶
func (x *BranchesRepos) Reset()
func (*BranchesRepos) String ¶
func (x *BranchesRepos) String() string
type ChunkMatch ¶
type ChunkMatch struct { // A contiguous range of complete lines that fully contains Ranges. Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // The location (inclusive) of the beginning of content // relative to the beginning of the file. It will always be at the // beginning of a line (Column will always be 1). ContentStart *Location `protobuf:"bytes,2,opt,name=content_start,json=contentStart,proto3" json:"content_start,omitempty"` // True if this match is a match on the file name, in // which case Content will contain the file name. FileName bool `protobuf:"varint,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // A set of matching ranges within this chunk. Each range is relative // to the beginning of the file (not the beginning of Content). Ranges []*Range `protobuf:"bytes,4,rep,name=ranges,proto3" json:"ranges,omitempty"` // The symbol information associated with Ranges. If it is non-nil, // its length will equal that of Ranges. Any of its elements may be nil. SymbolInfo []*SymbolInfo `protobuf:"bytes,5,rep,name=symbol_info,json=symbolInfo,proto3" json:"symbol_info,omitempty"` Score float64 `protobuf:"fixed64,6,opt,name=score,proto3" json:"score,omitempty"` DebugScore string `protobuf:"bytes,7,opt,name=debug_score,json=debugScore,proto3" json:"debug_score,omitempty"` // contains filtered or unexported fields }
func (*ChunkMatch) Descriptor
deprecated
func (*ChunkMatch) Descriptor() ([]byte, []int)
Deprecated: Use ChunkMatch.ProtoReflect.Descriptor instead.
func (*ChunkMatch) GetContent ¶
func (x *ChunkMatch) GetContent() []byte
func (*ChunkMatch) GetContentStart ¶
func (x *ChunkMatch) GetContentStart() *Location
func (*ChunkMatch) GetDebugScore ¶
func (x *ChunkMatch) GetDebugScore() string
func (*ChunkMatch) GetFileName ¶
func (x *ChunkMatch) GetFileName() bool
func (*ChunkMatch) GetRanges ¶
func (x *ChunkMatch) GetRanges() []*Range
func (*ChunkMatch) GetScore ¶
func (x *ChunkMatch) GetScore() float64
func (*ChunkMatch) GetSymbolInfo ¶
func (x *ChunkMatch) GetSymbolInfo() []*SymbolInfo
func (*ChunkMatch) ProtoMessage ¶
func (*ChunkMatch) ProtoMessage()
func (*ChunkMatch) ProtoReflect ¶
func (x *ChunkMatch) ProtoReflect() protoreflect.Message
func (*ChunkMatch) Reset ¶
func (x *ChunkMatch) Reset()
func (*ChunkMatch) String ¶
func (x *ChunkMatch) String() string
type FileMatch ¶
type FileMatch struct { // Ranking; the higher, the better. Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"` // For debugging. Needs DebugScore set, but public so tests in // other packages can print some diagnostics. Debug string `protobuf:"bytes,2,opt,name=debug,proto3" json:"debug,omitempty"` // The repository-relative path to the file. // 🚨 Warning: file_name might not be a valid UTF-8 string. FileName []byte `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // Repository is the globally unique name of the repo of the // match Repository string `protobuf:"bytes,4,opt,name=repository,proto3" json:"repository,omitempty"` Branches []string `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"` // One of line_matches or chunk_matches will be returned depending on whether // the SearchOptions.ChunkMatches is set. LineMatches []*LineMatch `protobuf:"bytes,6,rep,name=line_matches,json=lineMatches,proto3" json:"line_matches,omitempty"` ChunkMatches []*ChunkMatch `protobuf:"bytes,7,rep,name=chunk_matches,json=chunkMatches,proto3" json:"chunk_matches,omitempty"` // repository_id is a Sourcegraph extension. This is the ID of Repository in // Sourcegraph. RepositoryId uint32 `protobuf:"varint,8,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"` RepositoryPriority float64 `protobuf:"fixed64,9,opt,name=repository_priority,json=repositoryPriority,proto3" json:"repository_priority,omitempty"` // Only set if requested Content []byte `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"` // Checksum of the content. Checksum []byte `protobuf:"bytes,11,opt,name=checksum,proto3" json:"checksum,omitempty"` // Detected language of the result. Language string `protobuf:"bytes,12,opt,name=language,proto3" json:"language,omitempty"` // sub_repository_name is the globally unique name of the repo, // if it came from a subrepository SubRepositoryName string `protobuf:"bytes,13,opt,name=sub_repository_name,json=subRepositoryName,proto3" json:"sub_repository_name,omitempty"` // sub_repository_path holds the prefix where the subrepository // was mounted. SubRepositoryPath string `protobuf:"bytes,14,opt,name=sub_repository_path,json=subRepositoryPath,proto3" json:"sub_repository_path,omitempty"` // Commit SHA1 (hex) of the (sub)repo holding the file. Version string `protobuf:"bytes,15,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
FileMatch contains all the matches within a file.
func (*FileMatch) Descriptor
deprecated
func (*FileMatch) GetBranches ¶
func (*FileMatch) GetChecksum ¶
func (*FileMatch) GetChunkMatches ¶
func (x *FileMatch) GetChunkMatches() []*ChunkMatch
func (*FileMatch) GetContent ¶
func (*FileMatch) GetFileName ¶
func (*FileMatch) GetLanguage ¶
func (*FileMatch) GetLineMatches ¶
func (*FileMatch) GetRepository ¶
func (*FileMatch) GetRepositoryId ¶
func (*FileMatch) GetRepositoryPriority ¶
func (*FileMatch) GetSubRepositoryName ¶
func (*FileMatch) GetSubRepositoryPath ¶
func (*FileMatch) GetVersion ¶
func (*FileMatch) ProtoMessage ¶
func (*FileMatch) ProtoMessage()
func (*FileMatch) ProtoReflect ¶
func (x *FileMatch) ProtoReflect() protoreflect.Message
type FileNameSet ¶
type FileNameSet struct { Set []string `protobuf:"bytes,1,rep,name=set,proto3" json:"set,omitempty"` // contains filtered or unexported fields }
FileNameSet is a list of file names to match.
func (*FileNameSet) Descriptor
deprecated
func (*FileNameSet) Descriptor() ([]byte, []int)
Deprecated: Use FileNameSet.ProtoReflect.Descriptor instead.
func (*FileNameSet) GetSet ¶
func (x *FileNameSet) GetSet() []string
func (*FileNameSet) ProtoMessage ¶
func (*FileNameSet) ProtoMessage()
func (*FileNameSet) ProtoReflect ¶
func (x *FileNameSet) ProtoReflect() protoreflect.Message
func (*FileNameSet) Reset ¶
func (x *FileNameSet) Reset()
func (*FileNameSet) String ¶
func (x *FileNameSet) String() string
type FlushReason ¶
type FlushReason int32
const ( FlushReason_FLUSH_REASON_UNKNOWN_UNSPECIFIED FlushReason = 0 FlushReason_FLUSH_REASON_TIMER_EXPIRED FlushReason = 1 FlushReason_FLUSH_REASON_FINAL_FLUSH FlushReason = 2 FlushReason_FLUSH_REASON_MAX_SIZE FlushReason = 3 )
func (FlushReason) Descriptor ¶
func (FlushReason) Descriptor() protoreflect.EnumDescriptor
func (FlushReason) Enum ¶
func (x FlushReason) Enum() *FlushReason
func (FlushReason) EnumDescriptor
deprecated
func (FlushReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlushReason.Descriptor instead.
func (FlushReason) Number ¶
func (x FlushReason) Number() protoreflect.EnumNumber
func (FlushReason) String ¶
func (x FlushReason) String() string
func (FlushReason) Type ¶
func (FlushReason) Type() protoreflect.EnumType
type IndexMetadata ¶
type IndexMetadata struct { IndexFormatVersion int64 `protobuf:"varint,1,opt,name=index_format_version,json=indexFormatVersion,proto3" json:"index_format_version,omitempty"` IndexFeatureVersion int64 `protobuf:"varint,2,opt,name=index_feature_version,json=indexFeatureVersion,proto3" json:"index_feature_version,omitempty"` IndexMinReaderVersion int64 `` /* 129-byte string literal not displayed */ IndexTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"` PlainAscii bool `protobuf:"varint,5,opt,name=plain_ascii,json=plainAscii,proto3" json:"plain_ascii,omitempty"` LanguageMap map[string]uint32 `` /* 183-byte string literal not displayed */ ZoektVersion string `protobuf:"bytes,7,opt,name=zoekt_version,json=zoektVersion,proto3" json:"zoekt_version,omitempty"` Id string `protobuf:"bytes,8,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IndexMetadata) Descriptor
deprecated
func (*IndexMetadata) Descriptor() ([]byte, []int)
Deprecated: Use IndexMetadata.ProtoReflect.Descriptor instead.
func (*IndexMetadata) GetId ¶
func (x *IndexMetadata) GetId() string
func (*IndexMetadata) GetIndexFeatureVersion ¶
func (x *IndexMetadata) GetIndexFeatureVersion() int64
func (*IndexMetadata) GetIndexFormatVersion ¶
func (x *IndexMetadata) GetIndexFormatVersion() int64
func (*IndexMetadata) GetIndexMinReaderVersion ¶
func (x *IndexMetadata) GetIndexMinReaderVersion() int64
func (*IndexMetadata) GetIndexTime ¶
func (x *IndexMetadata) GetIndexTime() *timestamppb.Timestamp
func (*IndexMetadata) GetLanguageMap ¶
func (x *IndexMetadata) GetLanguageMap() map[string]uint32
func (*IndexMetadata) GetPlainAscii ¶
func (x *IndexMetadata) GetPlainAscii() bool
func (*IndexMetadata) GetZoektVersion ¶
func (x *IndexMetadata) GetZoektVersion() string
func (*IndexMetadata) ProtoMessage ¶
func (*IndexMetadata) ProtoMessage()
func (*IndexMetadata) ProtoReflect ¶
func (x *IndexMetadata) ProtoReflect() protoreflect.Message
func (*IndexMetadata) Reset ¶
func (x *IndexMetadata) Reset()
func (*IndexMetadata) String ¶
func (x *IndexMetadata) String() string
type Language ¶
type Language struct { Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` // contains filtered or unexported fields }
func (*Language) Descriptor
deprecated
func (*Language) GetLanguage ¶
func (*Language) ProtoMessage ¶
func (*Language) ProtoMessage()
func (*Language) ProtoReflect ¶
func (x *Language) ProtoReflect() protoreflect.Message
type LineFragmentMatch ¶
type LineFragmentMatch struct { // Offset within the line, in bytes. LineOffset int64 `protobuf:"varint,1,opt,name=line_offset,json=lineOffset,proto3" json:"line_offset,omitempty"` // Offset from file start, in bytes. Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // Number bytes that match. MatchLength int64 `protobuf:"varint,3,opt,name=match_length,json=matchLength,proto3" json:"match_length,omitempty"` SymbolInfo *SymbolInfo `protobuf:"bytes,4,opt,name=symbol_info,json=symbolInfo,proto3,oneof" json:"symbol_info,omitempty"` // contains filtered or unexported fields }
func (*LineFragmentMatch) Descriptor
deprecated
func (*LineFragmentMatch) Descriptor() ([]byte, []int)
Deprecated: Use LineFragmentMatch.ProtoReflect.Descriptor instead.
func (*LineFragmentMatch) GetLineOffset ¶
func (x *LineFragmentMatch) GetLineOffset() int64
func (*LineFragmentMatch) GetMatchLength ¶
func (x *LineFragmentMatch) GetMatchLength() int64
func (*LineFragmentMatch) GetOffset ¶
func (x *LineFragmentMatch) GetOffset() uint32
func (*LineFragmentMatch) GetSymbolInfo ¶
func (x *LineFragmentMatch) GetSymbolInfo() *SymbolInfo
func (*LineFragmentMatch) ProtoMessage ¶
func (*LineFragmentMatch) ProtoMessage()
func (*LineFragmentMatch) ProtoReflect ¶
func (x *LineFragmentMatch) ProtoReflect() protoreflect.Message
func (*LineFragmentMatch) Reset ¶
func (x *LineFragmentMatch) Reset()
func (*LineFragmentMatch) String ¶
func (x *LineFragmentMatch) String() string
type LineMatch ¶
type LineMatch struct { Line []byte `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"` LineStart int64 `protobuf:"varint,2,opt,name=line_start,json=lineStart,proto3" json:"line_start,omitempty"` LineEnd int64 `protobuf:"varint,3,opt,name=line_end,json=lineEnd,proto3" json:"line_end,omitempty"` LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"` // before and after are only set when SearchOptions.NumContextLines is > 0 Before []byte `protobuf:"bytes,5,opt,name=before,proto3" json:"before,omitempty"` After []byte `protobuf:"bytes,6,opt,name=after,proto3" json:"after,omitempty"` // If set, this was a match on the filename. FileName bool `protobuf:"varint,7,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // The higher the better. Only ranks the quality of the match // within the file, does not take rank of file into account Score float64 `protobuf:"fixed64,8,opt,name=score,proto3" json:"score,omitempty"` DebugScore string `protobuf:"bytes,9,opt,name=debug_score,json=debugScore,proto3" json:"debug_score,omitempty"` LineFragments []*LineFragmentMatch `protobuf:"bytes,10,rep,name=line_fragments,json=lineFragments,proto3" json:"line_fragments,omitempty"` // contains filtered or unexported fields }
func (*LineMatch) Descriptor
deprecated
func (*LineMatch) GetDebugScore ¶
func (*LineMatch) GetFileName ¶
func (*LineMatch) GetLineEnd ¶
func (*LineMatch) GetLineFragments ¶
func (x *LineMatch) GetLineFragments() []*LineFragmentMatch
func (*LineMatch) GetLineNumber ¶
func (*LineMatch) GetLineStart ¶
func (*LineMatch) ProtoMessage ¶
func (*LineMatch) ProtoMessage()
func (*LineMatch) ProtoReflect ¶
func (x *LineMatch) ProtoReflect() protoreflect.Message
type ListOptions ¶
type ListOptions struct { // Field decides which field to populate in RepoList response. Field ListOptions_RepoListField `protobuf:"varint,1,opt,name=field,proto3,enum=zoekt.webserver.v1.ListOptions_RepoListField" json:"field,omitempty"` // contains filtered or unexported fields }
func (*ListOptions) Descriptor
deprecated
func (*ListOptions) Descriptor() ([]byte, []int)
Deprecated: Use ListOptions.ProtoReflect.Descriptor instead.
func (*ListOptions) GetField ¶
func (x *ListOptions) GetField() ListOptions_RepoListField
func (*ListOptions) ProtoMessage ¶
func (*ListOptions) ProtoMessage()
func (*ListOptions) ProtoReflect ¶
func (x *ListOptions) ProtoReflect() protoreflect.Message
func (*ListOptions) Reset ¶
func (x *ListOptions) Reset()
func (*ListOptions) String ¶
func (x *ListOptions) String() string
type ListOptions_RepoListField ¶
type ListOptions_RepoListField int32
const ( ListOptions_REPO_LIST_FIELD_UNKNOWN_UNSPECIFIED ListOptions_RepoListField = 0 ListOptions_REPO_LIST_FIELD_REPOS ListOptions_RepoListField = 1 ListOptions_REPO_LIST_FIELD_REPOS_MAP ListOptions_RepoListField = 3 )
func (ListOptions_RepoListField) Descriptor ¶
func (ListOptions_RepoListField) Descriptor() protoreflect.EnumDescriptor
func (ListOptions_RepoListField) Enum ¶
func (x ListOptions_RepoListField) Enum() *ListOptions_RepoListField
func (ListOptions_RepoListField) EnumDescriptor
deprecated
func (ListOptions_RepoListField) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListOptions_RepoListField.Descriptor instead.
func (ListOptions_RepoListField) Number ¶
func (x ListOptions_RepoListField) Number() protoreflect.EnumNumber
func (ListOptions_RepoListField) String ¶
func (x ListOptions_RepoListField) String() string
func (ListOptions_RepoListField) Type ¶
func (ListOptions_RepoListField) Type() protoreflect.EnumType
type ListRequest ¶
type ListRequest struct { Query *Q `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Opts *ListOptions `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetOpts ¶
func (x *ListRequest) GetOpts() *ListOptions
func (*ListRequest) GetQuery ¶
func (x *ListRequest) GetQuery() *Q
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { // Returned when ListOptions.Field is RepoListFieldRepos. Repos []*RepoListEntry `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // ReposMap is set when ListOptions.Field is RepoListFieldReposMap. ReposMap map[uint32]*MinimalRepoListEntry `` /* 174-byte string literal not displayed */ Crashes int64 `protobuf:"varint,3,opt,name=crashes,proto3" json:"crashes,omitempty"` // Stats response to a List request. // This is the aggregate RepoStats of all repos matching the input query. Stats *RepoStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCrashes ¶
func (x *ListResponse) GetCrashes() int64
func (*ListResponse) GetRepos ¶
func (x *ListResponse) GetRepos() []*RepoListEntry
func (*ListResponse) GetReposMap ¶
func (x *ListResponse) GetReposMap() map[uint32]*MinimalRepoListEntry
func (*ListResponse) GetStats ¶
func (x *ListResponse) GetStats() *RepoStats
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type Location ¶
type Location struct { // 0-based byte offset from the beginning of the file ByteOffset uint32 `protobuf:"varint,1,opt,name=byte_offset,json=byteOffset,proto3" json:"byte_offset,omitempty"` // 1-based line number from the beginning of the file LineNumber uint32 `protobuf:"varint,2,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"` // 1-based column number (in runes) from the beginning of line Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetByteOffset ¶
func (*Location) GetLineNumber ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type MinimalRepoListEntry ¶
type MinimalRepoListEntry struct { HasSymbols bool `protobuf:"varint,1,opt,name=has_symbols,json=hasSymbols,proto3" json:"has_symbols,omitempty"` Branches []*RepositoryBranch `protobuf:"bytes,2,rep,name=branches,proto3" json:"branches,omitempty"` IndexTimeUnix int64 `protobuf:"varint,3,opt,name=index_time_unix,json=indexTimeUnix,proto3" json:"index_time_unix,omitempty"` // contains filtered or unexported fields }
func (*MinimalRepoListEntry) Descriptor
deprecated
func (*MinimalRepoListEntry) Descriptor() ([]byte, []int)
Deprecated: Use MinimalRepoListEntry.ProtoReflect.Descriptor instead.
func (*MinimalRepoListEntry) GetBranches ¶
func (x *MinimalRepoListEntry) GetBranches() []*RepositoryBranch
func (*MinimalRepoListEntry) GetHasSymbols ¶
func (x *MinimalRepoListEntry) GetHasSymbols() bool
func (*MinimalRepoListEntry) GetIndexTimeUnix ¶
func (x *MinimalRepoListEntry) GetIndexTimeUnix() int64
func (*MinimalRepoListEntry) ProtoMessage ¶
func (*MinimalRepoListEntry) ProtoMessage()
func (*MinimalRepoListEntry) ProtoReflect ¶
func (x *MinimalRepoListEntry) ProtoReflect() protoreflect.Message
func (*MinimalRepoListEntry) Reset ¶
func (x *MinimalRepoListEntry) Reset()
func (*MinimalRepoListEntry) String ¶
func (x *MinimalRepoListEntry) String() string
type Not ¶
type Not struct { Child *Q `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` // contains filtered or unexported fields }
Not inverts the meaning of its child.
func (*Not) Descriptor
deprecated
func (*Not) ProtoMessage ¶
func (*Not) ProtoMessage()
func (*Not) ProtoReflect ¶
func (x *Not) ProtoReflect() protoreflect.Message
type Or ¶
type Or struct { Children []*Q `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
Or is matched when any of its children is matched.
func (*Or) Descriptor
deprecated
func (*Or) GetChildren ¶
func (*Or) ProtoMessage ¶
func (*Or) ProtoMessage()
func (*Or) ProtoReflect ¶
func (x *Or) ProtoReflect() protoreflect.Message
type Progress ¶
type Progress struct { // Priority of the shard that was searched. Priority float64 `protobuf:"fixed64,1,opt,name=priority,proto3" json:"priority,omitempty"` // max_pending_priority is the maximum priority of pending result that is being searched in parallel. // This is used to reorder results when the result set is known to be stable-- that is, when a result's // Priority is greater than the max(MaxPendingPriority) from the latest results of each backend, it can be returned to the user. // // max_pending_priority decreases monotonically in each SearchResult. MaxPendingPriority float64 `protobuf:"fixed64,2,opt,name=max_pending_priority,json=maxPendingPriority,proto3" json:"max_pending_priority,omitempty"` // contains filtered or unexported fields }
Progress contains information about the global progress of the running search query. This is used by the frontend to reorder results and emit them when stable. Sourcegraph specific: this is used when querying multiple zoekt-webserver instances.
func (*Progress) Descriptor
deprecated
func (*Progress) GetMaxPendingPriority ¶
func (*Progress) GetPriority ¶
func (*Progress) ProtoMessage ¶
func (*Progress) ProtoMessage()
func (*Progress) ProtoReflect ¶
func (x *Progress) ProtoReflect() protoreflect.Message
type Q ¶
type Q struct { // Types that are assignable to Query: // // *Q_RawConfig // *Q_Regexp // *Q_Symbol // *Q_Language // *Q_Const // *Q_Repo // *Q_RepoRegexp // *Q_BranchesRepos // *Q_RepoIds // *Q_RepoSet // *Q_FileNameSet // *Q_Type // *Q_Substring // *Q_And // *Q_Or // *Q_Not // *Q_Branch // *Q_Boost Query isQ_Query `protobuf_oneof:"query"` // contains filtered or unexported fields }
func (*Q) Descriptor
deprecated
func (*Q) GetBranchesRepos ¶
func (x *Q) GetBranchesRepos() *BranchesRepos
func (*Q) GetFileNameSet ¶
func (x *Q) GetFileNameSet() *FileNameSet
func (*Q) GetLanguage ¶
func (*Q) GetRawConfig ¶
func (*Q) GetRepoIds ¶
func (*Q) GetRepoRegexp ¶
func (x *Q) GetRepoRegexp() *RepoRegexp
func (*Q) GetRepoSet ¶
func (*Q) GetSubstring ¶
func (*Q) ProtoMessage ¶
func (*Q) ProtoMessage()
func (*Q) ProtoReflect ¶
func (x *Q) ProtoReflect() protoreflect.Message
type Q_Boost ¶
type Q_Boost struct {
Boost *Boost `protobuf:"bytes,18,opt,name=boost,proto3,oneof"`
}
type Q_Branch ¶
type Q_Branch struct {
Branch *Branch `protobuf:"bytes,17,opt,name=branch,proto3,oneof"`
}
type Q_BranchesRepos ¶
type Q_BranchesRepos struct {
BranchesRepos *BranchesRepos `protobuf:"bytes,8,opt,name=branches_repos,json=branchesRepos,proto3,oneof"`
}
type Q_FileNameSet ¶
type Q_FileNameSet struct {
FileNameSet *FileNameSet `protobuf:"bytes,11,opt,name=file_name_set,json=fileNameSet,proto3,oneof"`
}
type Q_Language ¶
type Q_Language struct {
Language *Language `protobuf:"bytes,4,opt,name=language,proto3,oneof"`
}
type Q_RawConfig ¶
type Q_RawConfig struct {
RawConfig *RawConfig `protobuf:"bytes,1,opt,name=raw_config,json=rawConfig,proto3,oneof"`
}
type Q_Regexp ¶
type Q_Regexp struct {
Regexp *Regexp `protobuf:"bytes,2,opt,name=regexp,proto3,oneof"`
}
type Q_RepoIds ¶
type Q_RepoIds struct {
RepoIds *RepoIds `protobuf:"bytes,9,opt,name=repo_ids,json=repoIds,proto3,oneof"`
}
type Q_RepoRegexp ¶
type Q_RepoRegexp struct {
RepoRegexp *RepoRegexp `protobuf:"bytes,7,opt,name=repo_regexp,json=repoRegexp,proto3,oneof"`
}
type Q_RepoSet ¶
type Q_RepoSet struct {
RepoSet *RepoSet `protobuf:"bytes,10,opt,name=repo_set,json=repoSet,proto3,oneof"`
}
type Q_Substring ¶
type Q_Substring struct {
Substring *Substring `protobuf:"bytes,13,opt,name=substring,proto3,oneof"`
}
type Q_Symbol ¶
type Q_Symbol struct {
Symbol *Symbol `protobuf:"bytes,3,opt,name=symbol,proto3,oneof"`
}
type Range ¶
type Range struct { // The inclusive beginning of the range. Start *Location `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // The exclusive end of the range. End *Location `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*Range) Descriptor
deprecated
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type RawConfig ¶
type RawConfig struct { Flags []RawConfig_Flag `protobuf:"varint,1,rep,packed,name=flags,proto3,enum=zoekt.webserver.v1.RawConfig_Flag" json:"flags,omitempty"` // contains filtered or unexported fields }
RawConfig filters repositories based on their encoded RawConfig map.
func (*RawConfig) Descriptor
deprecated
func (*RawConfig) GetFlags ¶
func (x *RawConfig) GetFlags() []RawConfig_Flag
func (*RawConfig) ProtoMessage ¶
func (*RawConfig) ProtoMessage()
func (*RawConfig) ProtoReflect ¶
func (x *RawConfig) ProtoReflect() protoreflect.Message
type RawConfig_Flag ¶
type RawConfig_Flag int32
const ( RawConfig_FLAG_UNKNOWN_UNSPECIFIED RawConfig_Flag = 0 RawConfig_FLAG_ONLY_PUBLIC RawConfig_Flag = 1 RawConfig_FLAG_ONLY_PRIVATE RawConfig_Flag = 2 RawConfig_FLAG_ONLY_FORKS RawConfig_Flag = 4 RawConfig_FLAG_NO_FORKS RawConfig_Flag = 8 RawConfig_FLAG_ONLY_ARCHIVED RawConfig_Flag = 16 RawConfig_FLAG_NO_ARCHIVED RawConfig_Flag = 32 )
func (RawConfig_Flag) Descriptor ¶
func (RawConfig_Flag) Descriptor() protoreflect.EnumDescriptor
func (RawConfig_Flag) Enum ¶
func (x RawConfig_Flag) Enum() *RawConfig_Flag
func (RawConfig_Flag) EnumDescriptor
deprecated
func (RawConfig_Flag) EnumDescriptor() ([]byte, []int)
Deprecated: Use RawConfig_Flag.Descriptor instead.
func (RawConfig_Flag) Number ¶
func (x RawConfig_Flag) Number() protoreflect.EnumNumber
func (RawConfig_Flag) String ¶
func (x RawConfig_Flag) String() string
func (RawConfig_Flag) Type ¶
func (RawConfig_Flag) Type() protoreflect.EnumType
type Regexp ¶
type Regexp struct { Regexp string `protobuf:"bytes,1,opt,name=regexp,proto3" json:"regexp,omitempty"` FileName bool `protobuf:"varint,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Content bool `protobuf:"varint,3,opt,name=content,proto3" json:"content,omitempty"` CaseSensitive bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"` // contains filtered or unexported fields }
Regexp is a query looking for regular expressions matches.
func (*Regexp) Descriptor
deprecated
func (*Regexp) GetCaseSensitive ¶
func (*Regexp) GetContent ¶
func (*Regexp) GetFileName ¶
func (*Regexp) ProtoMessage ¶
func (*Regexp) ProtoMessage()
func (*Regexp) ProtoReflect ¶
func (x *Regexp) ProtoReflect() protoreflect.Message
type Repo ¶
type Repo struct { Regexp string `protobuf:"bytes,1,opt,name=regexp,proto3" json:"regexp,omitempty"` // contains filtered or unexported fields }
func (*Repo) Descriptor
deprecated
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶
func (x *Repo) ProtoReflect() protoreflect.Message
type RepoIds ¶
type RepoIds struct { // a serialized roaring bitmap of the target repo ids Repos []byte `protobuf:"bytes,1,opt,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
Similar to BranchRepos but will be used to match only by repoid and therefore matches all branches
func (*RepoIds) Descriptor
deprecated
func (*RepoIds) ProtoMessage ¶
func (*RepoIds) ProtoMessage()
func (*RepoIds) ProtoReflect ¶
func (x *RepoIds) ProtoReflect() protoreflect.Message
type RepoListEntry ¶
type RepoListEntry struct { Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` IndexMetadata *IndexMetadata `protobuf:"bytes,2,opt,name=index_metadata,json=indexMetadata,proto3" json:"index_metadata,omitempty"` Stats *RepoStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*RepoListEntry) Descriptor
deprecated
func (*RepoListEntry) Descriptor() ([]byte, []int)
Deprecated: Use RepoListEntry.ProtoReflect.Descriptor instead.
func (*RepoListEntry) GetIndexMetadata ¶
func (x *RepoListEntry) GetIndexMetadata() *IndexMetadata
func (*RepoListEntry) GetRepository ¶
func (x *RepoListEntry) GetRepository() *Repository
func (*RepoListEntry) GetStats ¶
func (x *RepoListEntry) GetStats() *RepoStats
func (*RepoListEntry) ProtoMessage ¶
func (*RepoListEntry) ProtoMessage()
func (*RepoListEntry) ProtoReflect ¶
func (x *RepoListEntry) ProtoReflect() protoreflect.Message
func (*RepoListEntry) Reset ¶
func (x *RepoListEntry) Reset()
func (*RepoListEntry) String ¶
func (x *RepoListEntry) String() string
type RepoRegexp ¶
type RepoRegexp struct { Regexp string `protobuf:"bytes,1,opt,name=regexp,proto3" json:"regexp,omitempty"` // contains filtered or unexported fields }
func (*RepoRegexp) Descriptor
deprecated
func (*RepoRegexp) Descriptor() ([]byte, []int)
Deprecated: Use RepoRegexp.ProtoReflect.Descriptor instead.
func (*RepoRegexp) GetRegexp ¶
func (x *RepoRegexp) GetRegexp() string
func (*RepoRegexp) ProtoMessage ¶
func (*RepoRegexp) ProtoMessage()
func (*RepoRegexp) ProtoReflect ¶
func (x *RepoRegexp) ProtoReflect() protoreflect.Message
func (*RepoRegexp) Reset ¶
func (x *RepoRegexp) Reset()
func (*RepoRegexp) String ¶
func (x *RepoRegexp) String() string
type RepoSet ¶
type RepoSet struct { Set map[string]bool `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
RepoSet is a list of repos to match.
func (*RepoSet) Descriptor
deprecated
func (*RepoSet) ProtoMessage ¶
func (*RepoSet) ProtoMessage()
func (*RepoSet) ProtoReflect ¶
func (x *RepoSet) ProtoReflect() protoreflect.Message
type RepoStats ¶
type RepoStats struct { // repos is used for aggregrating the number of repositories. Repos int64 `protobuf:"varint,1,opt,name=repos,proto3" json:"repos,omitempty"` // shards is the total number of search shards. Shards int64 `protobuf:"varint,2,opt,name=shards,proto3" json:"shards,omitempty"` // documents holds the number of documents or files. Documents int64 `protobuf:"varint,3,opt,name=documents,proto3" json:"documents,omitempty"` // index_bytes is the amount of RAM used for index overhead. IndexBytes int64 `protobuf:"varint,4,opt,name=index_bytes,json=indexBytes,proto3" json:"index_bytes,omitempty"` // content_bytes is the amount of RAM used for raw content. ContentBytes int64 `protobuf:"varint,5,opt,name=content_bytes,json=contentBytes,proto3" json:"content_bytes,omitempty"` // new_lines_count is the number of newlines "\n" that appear in the zoekt // indexed documents. This is not exactly the same as line count, since it // will not include lines not terminated by "\n" (eg a file with no "\n", or // a final line without "\n"). Note: Zoekt deduplicates documents across // branches, so if a path has the same contents on multiple branches, there // is only one document for it. As such that document's newlines is only // counted once. See DefaultBranchNewLinesCount and AllBranchesNewLinesCount // for counts which do not deduplicate. NewLinesCount uint64 `protobuf:"varint,6,opt,name=new_lines_count,json=newLinesCount,proto3" json:"new_lines_count,omitempty"` // default_branch_new_lines_count is the number of newlines "\n" in the default // branch. DefaultBranchNewLinesCount uint64 `` /* 146-byte string literal not displayed */ // other_branches_new_lines_count is the number of newlines "\n" in all branches // except the default branch. OtherBranchesNewLinesCount uint64 `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
RepoStats is a collection of statistics for a set of repositories.
func (*RepoStats) Descriptor
deprecated
func (*RepoStats) GetContentBytes ¶
func (*RepoStats) GetDefaultBranchNewLinesCount ¶
func (*RepoStats) GetDocuments ¶
func (*RepoStats) GetIndexBytes ¶
func (*RepoStats) GetNewLinesCount ¶
func (*RepoStats) GetOtherBranchesNewLinesCount ¶
func (*RepoStats) ProtoMessage ¶
func (*RepoStats) ProtoMessage()
func (*RepoStats) ProtoReflect ¶
func (x *RepoStats) ProtoReflect() protoreflect.Message
type Repository ¶
type Repository struct { // Sourcegraph's repository ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The repository name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The repository URL. Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // The physical source where this repo came from, eg. full // path to the zip filename or git repository directory. This // will not be exposed in the UI, but can be used to detect // orphaned index shards. Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // The branches indexed in this repo. Branches []*RepositoryBranch `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"` // Nil if this is not the super project. SubRepoMap map[string]*Repository `` /* 181-byte string literal not displayed */ // URL template to link to the commit of a branch CommitUrlTemplate string `protobuf:"bytes,7,opt,name=commit_url_template,json=commitUrlTemplate,proto3" json:"commit_url_template,omitempty"` // The repository URL for getting to a file. Has access to // {{.Version}}, {{.Path}} FileUrlTemplate string `protobuf:"bytes,8,opt,name=file_url_template,json=fileUrlTemplate,proto3" json:"file_url_template,omitempty"` // The URL fragment to add to a file URL for line numbers. has // access to {{.LineNumber}}. The fragment should include the // separator, generally '#' or ';'. LineFragmentTemplate string `protobuf:"bytes,9,opt,name=line_fragment_template,json=lineFragmentTemplate,proto3" json:"line_fragment_template,omitempty"` // Perf optimization: priority is set when we load the shard. It corresponds to // the value of "priority" stored in RawConfig. Priority float64 `protobuf:"fixed64,10,opt,name=priority,proto3" json:"priority,omitempty"` // All zoekt.* configuration settings. RawConfig map[string]string `` /* 177-byte string literal not displayed */ // Importance of the repository, bigger is more important Rank uint32 `protobuf:"varint,12,opt,name=rank,proto3" json:"rank,omitempty"` // index_options is a hash of the options used to create the index for the // repo. IndexOptions string `protobuf:"bytes,13,opt,name=index_options,json=indexOptions,proto3" json:"index_options,omitempty"` // has_symbols is true if this repository has indexed ctags // output. Sourcegraph specific: This field is more appropriate for // IndexMetadata. However, we store it here since the Sourcegraph frontend // can read this structure but not IndexMetadata. HasSymbols bool `protobuf:"varint,14,opt,name=has_symbols,json=hasSymbols,proto3" json:"has_symbols,omitempty"` // tombstone is true if we are not allowed to search this repo. Tombstone bool `protobuf:"varint,15,opt,name=tombstone,proto3" json:"tombstone,omitempty"` // latest_commit_date is the date of the latest commit among all indexed Branches. // The date might be time.Time's 0-value if the repository was last indexed // before this field was added. LatestCommitDate *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=latest_commit_date,json=latestCommitDate,proto3" json:"latest_commit_date,omitempty"` // file_tombstones is a set of file paths that should be ignored across all branches // in this shard. FileTombstones []string `protobuf:"bytes,17,rep,name=file_tombstones,json=fileTombstones,proto3" json:"file_tombstones,omitempty"` // contains filtered or unexported fields }
func (*Repository) Descriptor
deprecated
func (*Repository) Descriptor() ([]byte, []int)
Deprecated: Use Repository.ProtoReflect.Descriptor instead.
func (*Repository) GetBranches ¶
func (x *Repository) GetBranches() []*RepositoryBranch
func (*Repository) GetCommitUrlTemplate ¶
func (x *Repository) GetCommitUrlTemplate() string
func (*Repository) GetFileTombstones ¶
func (x *Repository) GetFileTombstones() []string
func (*Repository) GetFileUrlTemplate ¶
func (x *Repository) GetFileUrlTemplate() string
func (*Repository) GetHasSymbols ¶
func (x *Repository) GetHasSymbols() bool
func (*Repository) GetId ¶
func (x *Repository) GetId() uint32
func (*Repository) GetIndexOptions ¶
func (x *Repository) GetIndexOptions() string
func (*Repository) GetLatestCommitDate ¶
func (x *Repository) GetLatestCommitDate() *timestamppb.Timestamp
func (*Repository) GetLineFragmentTemplate ¶
func (x *Repository) GetLineFragmentTemplate() string
func (*Repository) GetName ¶
func (x *Repository) GetName() string
func (*Repository) GetPriority ¶
func (x *Repository) GetPriority() float64
func (*Repository) GetRank ¶
func (x *Repository) GetRank() uint32
func (*Repository) GetRawConfig ¶
func (x *Repository) GetRawConfig() map[string]string
func (*Repository) GetSource ¶
func (x *Repository) GetSource() string
func (*Repository) GetSubRepoMap ¶
func (x *Repository) GetSubRepoMap() map[string]*Repository
func (*Repository) GetTombstone ¶
func (x *Repository) GetTombstone() bool
func (*Repository) GetUrl ¶
func (x *Repository) GetUrl() string
func (*Repository) ProtoMessage ¶
func (*Repository) ProtoMessage()
func (*Repository) ProtoReflect ¶
func (x *Repository) ProtoReflect() protoreflect.Message
func (*Repository) Reset ¶
func (x *Repository) Reset()
func (*Repository) String ¶
func (x *Repository) String() string
type RepositoryBranch ¶
type RepositoryBranch struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
RepositoryBranch describes an indexed branch, which is a name combined with a version.
func (*RepositoryBranch) Descriptor
deprecated
func (*RepositoryBranch) Descriptor() ([]byte, []int)
Deprecated: Use RepositoryBranch.ProtoReflect.Descriptor instead.
func (*RepositoryBranch) GetName ¶
func (x *RepositoryBranch) GetName() string
func (*RepositoryBranch) GetVersion ¶
func (x *RepositoryBranch) GetVersion() string
func (*RepositoryBranch) ProtoMessage ¶
func (*RepositoryBranch) ProtoMessage()
func (*RepositoryBranch) ProtoReflect ¶
func (x *RepositoryBranch) ProtoReflect() protoreflect.Message
func (*RepositoryBranch) Reset ¶
func (x *RepositoryBranch) Reset()
func (*RepositoryBranch) String ¶
func (x *RepositoryBranch) String() string
type SearchOptions ¶
type SearchOptions struct { // Return an upper-bound estimate of eligible documents in // stats.ShardFilesConsidered. EstimateDocCount bool `protobuf:"varint,1,opt,name=estimate_doc_count,json=estimateDocCount,proto3" json:"estimate_doc_count,omitempty"` // Return the whole file. Whole bool `protobuf:"varint,2,opt,name=whole,proto3" json:"whole,omitempty"` // Maximum number of matches: skip all processing an index // shard after we found this many non-overlapping matches. ShardMaxMatchCount int64 `protobuf:"varint,3,opt,name=shard_max_match_count,json=shardMaxMatchCount,proto3" json:"shard_max_match_count,omitempty"` // Maximum number of matches: stop looking for more matches // once we have this many matches across shards. TotalMaxMatchCount int64 `protobuf:"varint,4,opt,name=total_max_match_count,json=totalMaxMatchCount,proto3" json:"total_max_match_count,omitempty"` // Maximum number of matches: skip processing documents for a repository in // a shard once we have found ShardRepoMaxMatchCount. // // A compound shard may contain multiple repositories. This will most often // be set to 1 to find all repositories containing a result. ShardRepoMaxMatchCount int64 `` /* 134-byte string literal not displayed */ // Abort the search after this much time has passed. MaxWallTime *durationpb.Duration `protobuf:"bytes,6,opt,name=max_wall_time,json=maxWallTime,proto3" json:"max_wall_time,omitempty"` // FlushWallTime if non-zero will stop streaming behaviour at first and // instead will collate and sort results. At FlushWallTime the results will // be sent and then the behaviour will revert to the normal streaming. FlushWallTime *durationpb.Duration `protobuf:"bytes,7,opt,name=flush_wall_time,json=flushWallTime,proto3" json:"flush_wall_time,omitempty"` // Truncates the number of documents (i.e. files) after collating and // sorting the results. MaxDocDisplayCount int64 `protobuf:"varint,8,opt,name=max_doc_display_count,json=maxDocDisplayCount,proto3" json:"max_doc_display_count,omitempty"` // Truncates the number of matchs after collating and sorting the results. MaxMatchDisplayCount int64 `` /* 127-byte string literal not displayed */ // If set to a number greater than zero then up to this many number // of context lines will be added before and after each matched line. // Note that the included context lines might contain matches and // it's up to the consumer of the result to remove those lines. NumContextLines int64 `protobuf:"varint,9,opt,name=num_context_lines,json=numContextLines,proto3" json:"num_context_lines,omitempty"` // If true, ChunkMatches will be returned in each FileMatch rather than LineMatches // EXPERIMENTAL: the behavior of this flag may be changed in future versions. ChunkMatches bool `protobuf:"varint,10,opt,name=chunk_matches,json=chunkMatches,proto3" json:"chunk_matches,omitempty"` // EXPERIMENTAL. If true, document ranks are used as additional input for // sorting matches. UseDocumentRanks bool `protobuf:"varint,11,opt,name=use_document_ranks,json=useDocumentRanks,proto3" json:"use_document_ranks,omitempty"` // EXPERIMENTAL. When UseDocumentRanks is enabled, this can be optionally set to adjust // their weight in the file match score. If the value is <= 0.0, the default weight value // will be used. This option is temporary and is only exposed for testing/ tuning purposes. DocumentRanksWeight float64 `protobuf:"fixed64,12,opt,name=document_ranks_weight,json=documentRanksWeight,proto3" json:"document_ranks_weight,omitempty"` // Trace turns on opentracing for this request if true and if the Jaeger address was provided as // a command-line flag Trace bool `protobuf:"varint,13,opt,name=trace,proto3" json:"trace,omitempty"` // If set, the search results will contain debug information for scoring. DebugScore bool `protobuf:"varint,14,opt,name=debug_score,json=debugScore,proto3" json:"debug_score,omitempty"` // EXPERIMENTAL. If true, use keyword-style scoring instead of the default scoring formula. // Currently, this treats each match in a file as a term and computes an approximation to BM25. // When enabled, all other scoring signals are ignored, including document ranks. UseKeywordScoring bool `protobuf:"varint,15,opt,name=use_keyword_scoring,json=useKeywordScoring,proto3" json:"use_keyword_scoring,omitempty"` // If true, SearchResult.RepoURLs and SearchResults.LineFragments are not computed and are // excluded from results. // This is useful for deployments of zoekt for a single host, where you can create the // repoURL elsewhere is just from the repository name ExcludeRepoUrlsAndLineFragments bool `` /* 164-byte string literal not displayed */ // Replace HEAD with in fileMatch.Branches with Repository.HEADRevParsedName, // if it is not empty SawpHeadInBranchesWithRevParsedName bool `` /* 180-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SearchOptions) Descriptor
deprecated
func (*SearchOptions) Descriptor() ([]byte, []int)
Deprecated: Use SearchOptions.ProtoReflect.Descriptor instead.
func (*SearchOptions) GetChunkMatches ¶
func (x *SearchOptions) GetChunkMatches() bool
func (*SearchOptions) GetDebugScore ¶
func (x *SearchOptions) GetDebugScore() bool
func (*SearchOptions) GetDocumentRanksWeight ¶
func (x *SearchOptions) GetDocumentRanksWeight() float64
func (*SearchOptions) GetEstimateDocCount ¶
func (x *SearchOptions) GetEstimateDocCount() bool
func (*SearchOptions) GetExcludeRepoUrlsAndLineFragments ¶
func (x *SearchOptions) GetExcludeRepoUrlsAndLineFragments() bool
func (*SearchOptions) GetFlushWallTime ¶
func (x *SearchOptions) GetFlushWallTime() *durationpb.Duration
func (*SearchOptions) GetMaxDocDisplayCount ¶
func (x *SearchOptions) GetMaxDocDisplayCount() int64
func (*SearchOptions) GetMaxMatchDisplayCount ¶
func (x *SearchOptions) GetMaxMatchDisplayCount() int64
func (*SearchOptions) GetMaxWallTime ¶
func (x *SearchOptions) GetMaxWallTime() *durationpb.Duration
func (*SearchOptions) GetNumContextLines ¶
func (x *SearchOptions) GetNumContextLines() int64
func (*SearchOptions) GetSawpHeadInBranchesWithRevParsedName ¶
func (x *SearchOptions) GetSawpHeadInBranchesWithRevParsedName() bool
func (*SearchOptions) GetShardMaxMatchCount ¶
func (x *SearchOptions) GetShardMaxMatchCount() int64
func (*SearchOptions) GetShardRepoMaxMatchCount ¶
func (x *SearchOptions) GetShardRepoMaxMatchCount() int64
func (*SearchOptions) GetTotalMaxMatchCount ¶
func (x *SearchOptions) GetTotalMaxMatchCount() int64
func (*SearchOptions) GetTrace ¶
func (x *SearchOptions) GetTrace() bool
func (*SearchOptions) GetUseDocumentRanks ¶
func (x *SearchOptions) GetUseDocumentRanks() bool
func (*SearchOptions) GetUseKeywordScoring ¶
func (x *SearchOptions) GetUseKeywordScoring() bool
func (*SearchOptions) GetWhole ¶
func (x *SearchOptions) GetWhole() bool
func (*SearchOptions) ProtoMessage ¶
func (*SearchOptions) ProtoMessage()
func (*SearchOptions) ProtoReflect ¶
func (x *SearchOptions) ProtoReflect() protoreflect.Message
func (*SearchOptions) Reset ¶
func (x *SearchOptions) Reset()
func (*SearchOptions) String ¶
func (x *SearchOptions) String() string
type SearchRequest ¶
type SearchRequest struct { Query *Q `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Opts *SearchOptions `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetOpts ¶
func (x *SearchRequest) GetOpts() *SearchOptions
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() *Q
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { Stats *Stats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` Progress *Progress `protobuf:"bytes,2,opt,name=progress,proto3" json:"progress,omitempty"` Files []*FileMatch `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetFiles ¶
func (x *SearchResponse) GetFiles() []*FileMatch
func (*SearchResponse) GetProgress ¶
func (x *SearchResponse) GetProgress() *Progress
func (*SearchResponse) GetStats ¶
func (x *SearchResponse) GetStats() *Stats
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type Stats ¶
type Stats struct { // Amount of I/O for reading contents. ContentBytesLoaded int64 `protobuf:"varint,1,opt,name=content_bytes_loaded,json=contentBytesLoaded,proto3" json:"content_bytes_loaded,omitempty"` // Amount of I/O for reading from index. IndexBytesLoaded int64 `protobuf:"varint,2,opt,name=index_bytes_loaded,json=indexBytesLoaded,proto3" json:"index_bytes_loaded,omitempty"` // Number of search shards that had a crash. Crashes int64 `protobuf:"varint,3,opt,name=crashes,proto3" json:"crashes,omitempty"` // Wall clock time for this search Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // Number of files containing a match. FileCount int64 `protobuf:"varint,5,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` // Number of files in shards that we considered. ShardFilesConsidered int64 `protobuf:"varint,6,opt,name=shard_files_considered,json=shardFilesConsidered,proto3" json:"shard_files_considered,omitempty"` // Files that we evaluated. Equivalent to files for which all // atom matches (including negations) evaluated to true. FilesConsidered int64 `protobuf:"varint,7,opt,name=files_considered,json=filesConsidered,proto3" json:"files_considered,omitempty"` // Files for which we loaded file content to verify substring matches FilesLoaded int64 `protobuf:"varint,8,opt,name=files_loaded,json=filesLoaded,proto3" json:"files_loaded,omitempty"` // Candidate files whose contents weren't examined because we // gathered enough matches. FilesSkipped int64 `protobuf:"varint,9,opt,name=files_skipped,json=filesSkipped,proto3" json:"files_skipped,omitempty"` // Shards that we scanned to find matches. ShardsScanned int64 `protobuf:"varint,10,opt,name=shards_scanned,json=shardsScanned,proto3" json:"shards_scanned,omitempty"` // Shards that we did not process because a query was canceled. ShardsSkipped int64 `protobuf:"varint,11,opt,name=shards_skipped,json=shardsSkipped,proto3" json:"shards_skipped,omitempty"` // Shards that we did not process because the query was rejected by the // ngram filter indicating it had no matches. ShardsSkippedFilter int64 `protobuf:"varint,12,opt,name=shards_skipped_filter,json=shardsSkippedFilter,proto3" json:"shards_skipped_filter,omitempty"` // Number of non-overlapping matches MatchCount int64 `protobuf:"varint,13,opt,name=match_count,json=matchCount,proto3" json:"match_count,omitempty"` // Number of candidate matches as a result of searching ngrams. NgramMatches int64 `protobuf:"varint,14,opt,name=ngram_matches,json=ngramMatches,proto3" json:"ngram_matches,omitempty"` // Wall clock time for queued search. Wait *durationpb.Duration `protobuf:"bytes,15,opt,name=wait,proto3" json:"wait,omitempty"` // Aggregate wall clock time spent constructing and pruning the match tree. // This accounts for time such as lookups in the trigram index. MatchTreeConstruction *durationpb.Duration `` /* 127-byte string literal not displayed */ // Aggregate wall clock time spent searching the match tree. This accounts // for the bulk of search work done looking for matches. MatchTreeSearch *durationpb.Duration `protobuf:"bytes,20,opt,name=match_tree_search,json=matchTreeSearch,proto3" json:"match_tree_search,omitempty"` // Number of times regexp was called on files that we evaluated. RegexpsConsidered int64 `protobuf:"varint,16,opt,name=regexps_considered,json=regexpsConsidered,proto3" json:"regexps_considered,omitempty"` // FlushReason explains why results were flushed. FlushReason FlushReason `` /* 132-byte string literal not displayed */ // NgramLookups is the number of times we accessed an ngram in the index. NgramLookups int64 `protobuf:"varint,18,opt,name=ngram_lookups,json=ngramLookups,proto3" json:"ngram_lookups,omitempty"` // contains filtered or unexported fields }
func (*Stats) Descriptor
deprecated
func (*Stats) GetContentBytesLoaded ¶
func (*Stats) GetCrashes ¶
func (*Stats) GetDuration ¶
func (x *Stats) GetDuration() *durationpb.Duration
func (*Stats) GetFileCount ¶
func (*Stats) GetFilesConsidered ¶
func (*Stats) GetFilesLoaded ¶
func (*Stats) GetFilesSkipped ¶
func (*Stats) GetFlushReason ¶
func (x *Stats) GetFlushReason() FlushReason
func (*Stats) GetIndexBytesLoaded ¶
func (*Stats) GetMatchCount ¶
func (*Stats) GetMatchTreeConstruction ¶
func (x *Stats) GetMatchTreeConstruction() *durationpb.Duration
func (*Stats) GetMatchTreeSearch ¶
func (x *Stats) GetMatchTreeSearch() *durationpb.Duration
func (*Stats) GetNgramLookups ¶
func (*Stats) GetNgramMatches ¶
func (*Stats) GetRegexpsConsidered ¶
func (*Stats) GetShardFilesConsidered ¶
func (*Stats) GetShardsScanned ¶
func (*Stats) GetShardsSkipped ¶
func (*Stats) GetShardsSkippedFilter ¶
func (*Stats) GetWait ¶
func (x *Stats) GetWait() *durationpb.Duration
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶
func (x *Stats) ProtoReflect() protoreflect.Message
type StreamSearchRequest ¶
type StreamSearchRequest struct { Request *SearchRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*StreamSearchRequest) Descriptor
deprecated
func (*StreamSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamSearchRequest.ProtoReflect.Descriptor instead.
func (*StreamSearchRequest) GetRequest ¶
func (x *StreamSearchRequest) GetRequest() *SearchRequest
func (*StreamSearchRequest) ProtoMessage ¶
func (*StreamSearchRequest) ProtoMessage()
func (*StreamSearchRequest) ProtoReflect ¶
func (x *StreamSearchRequest) ProtoReflect() protoreflect.Message
func (*StreamSearchRequest) Reset ¶
func (x *StreamSearchRequest) Reset()
func (*StreamSearchRequest) String ¶
func (x *StreamSearchRequest) String() string
type StreamSearchResponse ¶
type StreamSearchResponse struct { ResponseChunk *SearchResponse `protobuf:"bytes,6,opt,name=response_chunk,json=responseChunk,proto3" json:"response_chunk,omitempty"` // contains filtered or unexported fields }
func (*StreamSearchResponse) Descriptor
deprecated
func (*StreamSearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamSearchResponse.ProtoReflect.Descriptor instead.
func (*StreamSearchResponse) GetResponseChunk ¶
func (x *StreamSearchResponse) GetResponseChunk() *SearchResponse
func (*StreamSearchResponse) ProtoMessage ¶
func (*StreamSearchResponse) ProtoMessage()
func (*StreamSearchResponse) ProtoReflect ¶
func (x *StreamSearchResponse) ProtoReflect() protoreflect.Message
func (*StreamSearchResponse) Reset ¶
func (x *StreamSearchResponse) Reset()
func (*StreamSearchResponse) String ¶
func (x *StreamSearchResponse) String() string
type Substring ¶
type Substring struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` CaseSensitive bool `protobuf:"varint,2,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"` // Match only filename FileName bool `protobuf:"varint,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // Match only content Content bool `protobuf:"varint,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Substring) Descriptor
deprecated
func (*Substring) GetCaseSensitive ¶
func (*Substring) GetContent ¶
func (*Substring) GetFileName ¶
func (*Substring) GetPattern ¶
func (*Substring) ProtoMessage ¶
func (*Substring) ProtoMessage()
func (*Substring) ProtoReflect ¶
func (x *Substring) ProtoReflect() protoreflect.Message
type Symbol ¶
type Symbol struct { Expr *Q `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` // contains filtered or unexported fields }
func (*Symbol) Descriptor
deprecated
func (*Symbol) ProtoMessage ¶
func (*Symbol) ProtoMessage()
func (*Symbol) ProtoReflect ¶
func (x *Symbol) ProtoReflect() protoreflect.Message
type SymbolInfo ¶
type SymbolInfo struct { Sym string `protobuf:"bytes,1,opt,name=sym,proto3" json:"sym,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` ParentKind string `protobuf:"bytes,4,opt,name=parent_kind,json=parentKind,proto3" json:"parent_kind,omitempty"` // contains filtered or unexported fields }
func (*SymbolInfo) Descriptor
deprecated
func (*SymbolInfo) Descriptor() ([]byte, []int)
Deprecated: Use SymbolInfo.ProtoReflect.Descriptor instead.
func (*SymbolInfo) GetKind ¶
func (x *SymbolInfo) GetKind() string
func (*SymbolInfo) GetParent ¶
func (x *SymbolInfo) GetParent() string
func (*SymbolInfo) GetParentKind ¶
func (x *SymbolInfo) GetParentKind() string
func (*SymbolInfo) GetSym ¶
func (x *SymbolInfo) GetSym() string
func (*SymbolInfo) ProtoMessage ¶
func (*SymbolInfo) ProtoMessage()
func (*SymbolInfo) ProtoReflect ¶
func (x *SymbolInfo) ProtoReflect() protoreflect.Message
func (*SymbolInfo) Reset ¶
func (x *SymbolInfo) Reset()
func (*SymbolInfo) String ¶
func (x *SymbolInfo) String() string
type Type ¶
type Type struct { Child *Q `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` // TODO: type constants Type Type_Kind `protobuf:"varint,2,opt,name=type,proto3,enum=zoekt.webserver.v1.Type_Kind" json:"type,omitempty"` // contains filtered or unexported fields }
Type changes the result type returned.
func (*Type) Descriptor
deprecated
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) ProtoReflect ¶
func (x *Type) ProtoReflect() protoreflect.Message
type Type_Kind ¶
type Type_Kind int32
func (Type_Kind) Descriptor ¶
func (Type_Kind) Descriptor() protoreflect.EnumDescriptor
func (Type_Kind) EnumDescriptor
deprecated
func (Type_Kind) Number ¶
func (x Type_Kind) Number() protoreflect.EnumNumber
func (Type_Kind) Type ¶
func (Type_Kind) Type() protoreflect.EnumType
type UnimplementedWebserverServiceServer ¶
type UnimplementedWebserverServiceServer struct { }
UnimplementedWebserverServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWebserverServiceServer) List ¶
func (UnimplementedWebserverServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedWebserverServiceServer) Search ¶
func (UnimplementedWebserverServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
func (UnimplementedWebserverServiceServer) StreamSearch ¶
func (UnimplementedWebserverServiceServer) StreamSearch(*StreamSearchRequest, WebserverService_StreamSearchServer) error
type UnsafeWebserverServiceServer ¶
type UnsafeWebserverServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWebserverServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebserverServiceServer will result in compilation errors.
type WebserverServiceClient ¶
type WebserverServiceClient interface { Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) StreamSearch(ctx context.Context, in *StreamSearchRequest, opts ...grpc.CallOption) (WebserverService_StreamSearchClient, error) // List lists repositories. The query `q` can only contain // query.Repo atoms. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
WebserverServiceClient is the client API for WebserverService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWebserverServiceClient ¶
func NewWebserverServiceClient(cc grpc.ClientConnInterface) WebserverServiceClient
type WebserverServiceServer ¶
type WebserverServiceServer interface { Search(context.Context, *SearchRequest) (*SearchResponse, error) StreamSearch(*StreamSearchRequest, WebserverService_StreamSearchServer) error // List lists repositories. The query `q` can only contain // query.Repo atoms. List(context.Context, *ListRequest) (*ListResponse, error) // contains filtered or unexported methods }
WebserverServiceServer is the server API for WebserverService service. All implementations must embed UnimplementedWebserverServiceServer for forward compatibility
type WebserverService_StreamSearchClient ¶
type WebserverService_StreamSearchClient interface { Recv() (*StreamSearchResponse, error) grpc.ClientStream }
type WebserverService_StreamSearchServer ¶
type WebserverService_StreamSearchServer interface { Send(*StreamSearchResponse) error grpc.ServerStream }