v1

package
v0.0.0-...-9f35cb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_zoekt_webserver_v1_query_proto protoreflect.FileDescriptor
View Source
var File_zoekt_webserver_v1_webserver_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use And.ProtoReflect.Descriptor instead.

func (*And) GetChildren

func (x *And) GetChildren() []*Q

func (*And) ProtoMessage

func (*And) ProtoMessage()

func (*And) ProtoReflect

func (x *And) ProtoReflect() protoreflect.Message

func (*And) Reset

func (x *And) Reset()

func (*And) String

func (x *And) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Boost.ProtoReflect.Descriptor instead.

func (*Boost) GetBoost

func (x *Boost) GetBoost() float64

func (*Boost) GetChild

func (x *Boost) GetChild() *Q

func (*Boost) ProtoMessage

func (*Boost) ProtoMessage()

func (*Boost) ProtoReflect

func (x *Boost) ProtoReflect() protoreflect.Message

func (*Boost) Reset

func (x *Boost) Reset()

func (*Boost) String

func (x *Boost) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Branch.ProtoReflect.Descriptor instead.

func (*Branch) GetExact

func (x *Branch) GetExact() bool

func (*Branch) GetPattern

func (x *Branch) GetPattern() string

func (*Branch) ProtoMessage

func (*Branch) ProtoMessage()

func (*Branch) ProtoReflect

func (x *Branch) ProtoReflect() protoreflect.Message

func (*Branch) Reset

func (x *Branch) Reset()

func (*Branch) String

func (x *Branch) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FileMatch.ProtoReflect.Descriptor instead.

func (*FileMatch) GetBranches

func (x *FileMatch) GetBranches() []string

func (*FileMatch) GetChecksum

func (x *FileMatch) GetChecksum() []byte

func (*FileMatch) GetChunkMatches

func (x *FileMatch) GetChunkMatches() []*ChunkMatch

func (*FileMatch) GetContent

func (x *FileMatch) GetContent() []byte

func (*FileMatch) GetDebug

func (x *FileMatch) GetDebug() string

func (*FileMatch) GetFileName

func (x *FileMatch) GetFileName() []byte

func (*FileMatch) GetLanguage

func (x *FileMatch) GetLanguage() string

func (*FileMatch) GetLineMatches

func (x *FileMatch) GetLineMatches() []*LineMatch

func (*FileMatch) GetRepository

func (x *FileMatch) GetRepository() string

func (*FileMatch) GetRepositoryId

func (x *FileMatch) GetRepositoryId() uint32

func (*FileMatch) GetRepositoryPriority

func (x *FileMatch) GetRepositoryPriority() float64

func (*FileMatch) GetScore

func (x *FileMatch) GetScore() float64

func (*FileMatch) GetSubRepositoryName

func (x *FileMatch) GetSubRepositoryName() string

func (*FileMatch) GetSubRepositoryPath

func (x *FileMatch) GetSubRepositoryPath() string

func (*FileMatch) GetVersion

func (x *FileMatch) GetVersion() string

func (*FileMatch) ProtoMessage

func (*FileMatch) ProtoMessage()

func (*FileMatch) ProtoReflect

func (x *FileMatch) ProtoReflect() protoreflect.Message

func (*FileMatch) Reset

func (x *FileMatch) Reset()

func (*FileMatch) String

func (x *FileMatch) String() string

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) 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

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) Descriptor() ([]byte, []int)

Deprecated: Use Language.ProtoReflect.Descriptor instead.

func (*Language) GetLanguage

func (x *Language) GetLanguage() string

func (*Language) ProtoMessage

func (*Language) ProtoMessage()

func (*Language) ProtoReflect

func (x *Language) ProtoReflect() protoreflect.Message

func (*Language) Reset

func (x *Language) Reset()

func (*Language) String

func (x *Language) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use LineMatch.ProtoReflect.Descriptor instead.

func (*LineMatch) GetAfter

func (x *LineMatch) GetAfter() []byte

func (*LineMatch) GetBefore

func (x *LineMatch) GetBefore() []byte

func (*LineMatch) GetDebugScore

func (x *LineMatch) GetDebugScore() string

func (*LineMatch) GetFileName

func (x *LineMatch) GetFileName() bool

func (*LineMatch) GetLine

func (x *LineMatch) GetLine() []byte

func (*LineMatch) GetLineEnd

func (x *LineMatch) GetLineEnd() int64

func (*LineMatch) GetLineFragments

func (x *LineMatch) GetLineFragments() []*LineFragmentMatch

func (*LineMatch) GetLineNumber

func (x *LineMatch) GetLineNumber() int64

func (*LineMatch) GetLineStart

func (x *LineMatch) GetLineStart() int64

func (*LineMatch) GetScore

func (x *LineMatch) GetScore() float64

func (*LineMatch) ProtoMessage

func (*LineMatch) ProtoMessage()

func (*LineMatch) ProtoReflect

func (x *LineMatch) ProtoReflect() protoreflect.Message

func (*LineMatch) Reset

func (x *LineMatch) Reset()

func (*LineMatch) String

func (x *LineMatch) String() string

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) Enum

func (ListOptions_RepoListField) EnumDescriptor deprecated

func (ListOptions_RepoListField) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListOptions_RepoListField.Descriptor instead.

func (ListOptions_RepoListField) Number

func (ListOptions_RepoListField) String

func (x ListOptions_RepoListField) String() string

func (ListOptions_RepoListField) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetByteOffset

func (x *Location) GetByteOffset() uint32

func (*Location) GetColumn

func (x *Location) GetColumn() uint32

func (*Location) GetLineNumber

func (x *Location) GetLineNumber() uint32

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Not.ProtoReflect.Descriptor instead.

func (*Not) GetChild

func (x *Not) GetChild() *Q

func (*Not) ProtoMessage

func (*Not) ProtoMessage()

func (*Not) ProtoReflect

func (x *Not) ProtoReflect() protoreflect.Message

func (*Not) Reset

func (x *Not) Reset()

func (*Not) String

func (x *Not) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Or.ProtoReflect.Descriptor instead.

func (*Or) GetChildren

func (x *Or) GetChildren() []*Q

func (*Or) ProtoMessage

func (*Or) ProtoMessage()

func (*Or) ProtoReflect

func (x *Or) ProtoReflect() protoreflect.Message

func (*Or) Reset

func (x *Or) Reset()

func (*Or) String

func (x *Or) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Progress.ProtoReflect.Descriptor instead.

func (*Progress) GetMaxPendingPriority

func (x *Progress) GetMaxPendingPriority() float64

func (*Progress) GetPriority

func (x *Progress) GetPriority() float64

func (*Progress) ProtoMessage

func (*Progress) ProtoMessage()

func (*Progress) ProtoReflect

func (x *Progress) ProtoReflect() protoreflect.Message

func (*Progress) Reset

func (x *Progress) Reset()

func (*Progress) String

func (x *Progress) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Q.ProtoReflect.Descriptor instead.

func (*Q) GetAnd

func (x *Q) GetAnd() *And

func (*Q) GetBoost

func (x *Q) GetBoost() *Boost

func (*Q) GetBranch

func (x *Q) GetBranch() *Branch

func (*Q) GetBranchesRepos

func (x *Q) GetBranchesRepos() *BranchesRepos

func (*Q) GetConst

func (x *Q) GetConst() bool

func (*Q) GetFileNameSet

func (x *Q) GetFileNameSet() *FileNameSet

func (*Q) GetLanguage

func (x *Q) GetLanguage() *Language

func (*Q) GetNot

func (x *Q) GetNot() *Not

func (*Q) GetOr

func (x *Q) GetOr() *Or

func (*Q) GetQuery

func (m *Q) GetQuery() isQ_Query

func (*Q) GetRawConfig

func (x *Q) GetRawConfig() *RawConfig

func (*Q) GetRegexp

func (x *Q) GetRegexp() *Regexp

func (*Q) GetRepo

func (x *Q) GetRepo() *Repo

func (*Q) GetRepoIds

func (x *Q) GetRepoIds() *RepoIds

func (*Q) GetRepoRegexp

func (x *Q) GetRepoRegexp() *RepoRegexp

func (*Q) GetRepoSet

func (x *Q) GetRepoSet() *RepoSet

func (*Q) GetSubstring

func (x *Q) GetSubstring() *Substring

func (*Q) GetSymbol

func (x *Q) GetSymbol() *Symbol

func (*Q) GetType

func (x *Q) GetType() *Type

func (*Q) ProtoMessage

func (*Q) ProtoMessage()

func (*Q) ProtoReflect

func (x *Q) ProtoReflect() protoreflect.Message

func (*Q) Reset

func (x *Q) Reset()

func (*Q) String

func (x *Q) String() string

type Q_And

type Q_And struct {
	And *And `protobuf:"bytes,14,opt,name=and,proto3,oneof"`
}

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_Const

type Q_Const struct {
	Const bool `protobuf:"varint,5,opt,name=const,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_Not

type Q_Not struct {
	Not *Not `protobuf:"bytes,16,opt,name=not,proto3,oneof"`
}

type Q_Or

type Q_Or struct {
	Or *Or `protobuf:"bytes,15,opt,name=or,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_Repo

type Q_Repo struct {
	Repo *Repo `protobuf:"bytes,6,opt,name=repo,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 Q_Type

type Q_Type struct {
	Type *Type `protobuf:"bytes,12,opt,name=type,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) Descriptor() ([]byte, []int)

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() *Location

func (*Range) GetStart

func (x *Range) GetStart() *Location

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

func (x *Range) ProtoReflect() protoreflect.Message

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RawConfig.ProtoReflect.Descriptor instead.

func (*RawConfig) GetFlags

func (x *RawConfig) GetFlags() []RawConfig_Flag

func (*RawConfig) ProtoMessage

func (*RawConfig) ProtoMessage()

func (*RawConfig) ProtoReflect

func (x *RawConfig) ProtoReflect() protoreflect.Message

func (*RawConfig) Reset

func (x *RawConfig) Reset()

func (*RawConfig) String

func (x *RawConfig) String() string

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) 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 (RawConfig_Flag) String

func (x RawConfig_Flag) String() string

func (RawConfig_Flag) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Regexp.ProtoReflect.Descriptor instead.

func (*Regexp) GetCaseSensitive

func (x *Regexp) GetCaseSensitive() bool

func (*Regexp) GetContent

func (x *Regexp) GetContent() bool

func (*Regexp) GetFileName

func (x *Regexp) GetFileName() bool

func (*Regexp) GetRegexp

func (x *Regexp) GetRegexp() string

func (*Regexp) ProtoMessage

func (*Regexp) ProtoMessage()

func (*Regexp) ProtoReflect

func (x *Regexp) ProtoReflect() protoreflect.Message

func (*Regexp) Reset

func (x *Regexp) Reset()

func (*Regexp) String

func (x *Regexp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetRegexp

func (x *Repo) GetRegexp() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

func (x *Repo) ProtoReflect() protoreflect.Message

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RepoIds.ProtoReflect.Descriptor instead.

func (*RepoIds) GetRepos

func (x *RepoIds) GetRepos() []byte

func (*RepoIds) ProtoMessage

func (*RepoIds) ProtoMessage()

func (*RepoIds) ProtoReflect

func (x *RepoIds) ProtoReflect() protoreflect.Message

func (*RepoIds) Reset

func (x *RepoIds) Reset()

func (*RepoIds) String

func (x *RepoIds) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RepoSet.ProtoReflect.Descriptor instead.

func (*RepoSet) GetSet

func (x *RepoSet) GetSet() map[string]bool

func (*RepoSet) ProtoMessage

func (*RepoSet) ProtoMessage()

func (*RepoSet) ProtoReflect

func (x *RepoSet) ProtoReflect() protoreflect.Message

func (*RepoSet) Reset

func (x *RepoSet) Reset()

func (*RepoSet) String

func (x *RepoSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RepoStats.ProtoReflect.Descriptor instead.

func (*RepoStats) GetContentBytes

func (x *RepoStats) GetContentBytes() int64

func (*RepoStats) GetDefaultBranchNewLinesCount

func (x *RepoStats) GetDefaultBranchNewLinesCount() uint64

func (*RepoStats) GetDocuments

func (x *RepoStats) GetDocuments() int64

func (*RepoStats) GetIndexBytes

func (x *RepoStats) GetIndexBytes() int64

func (*RepoStats) GetNewLinesCount

func (x *RepoStats) GetNewLinesCount() uint64

func (*RepoStats) GetOtherBranchesNewLinesCount

func (x *RepoStats) GetOtherBranchesNewLinesCount() uint64

func (*RepoStats) GetRepos

func (x *RepoStats) GetRepos() int64

func (*RepoStats) GetShards

func (x *RepoStats) GetShards() int64

func (*RepoStats) ProtoMessage

func (*RepoStats) ProtoMessage()

func (*RepoStats) ProtoReflect

func (x *RepoStats) ProtoReflect() protoreflect.Message

func (*RepoStats) Reset

func (x *RepoStats) Reset()

func (*RepoStats) String

func (x *RepoStats) String() string

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"`
	// 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) 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) 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) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetContentBytesLoaded

func (x *Stats) GetContentBytesLoaded() int64

func (*Stats) GetCrashes

func (x *Stats) GetCrashes() int64

func (*Stats) GetDuration

func (x *Stats) GetDuration() *durationpb.Duration

func (*Stats) GetFileCount

func (x *Stats) GetFileCount() int64

func (*Stats) GetFilesConsidered

func (x *Stats) GetFilesConsidered() int64

func (*Stats) GetFilesLoaded

func (x *Stats) GetFilesLoaded() int64

func (*Stats) GetFilesSkipped

func (x *Stats) GetFilesSkipped() int64

func (*Stats) GetFlushReason

func (x *Stats) GetFlushReason() FlushReason

func (*Stats) GetIndexBytesLoaded

func (x *Stats) GetIndexBytesLoaded() int64

func (*Stats) GetMatchCount

func (x *Stats) GetMatchCount() int64

func (*Stats) GetMatchTreeConstruction

func (x *Stats) GetMatchTreeConstruction() *durationpb.Duration

func (*Stats) GetMatchTreeSearch

func (x *Stats) GetMatchTreeSearch() *durationpb.Duration

func (*Stats) GetNgramLookups

func (x *Stats) GetNgramLookups() int64

func (*Stats) GetNgramMatches

func (x *Stats) GetNgramMatches() int64

func (*Stats) GetRegexpsConsidered

func (x *Stats) GetRegexpsConsidered() int64

func (*Stats) GetShardFilesConsidered

func (x *Stats) GetShardFilesConsidered() int64

func (*Stats) GetShardsScanned

func (x *Stats) GetShardsScanned() int64

func (*Stats) GetShardsSkipped

func (x *Stats) GetShardsSkipped() int64

func (*Stats) GetShardsSkippedFilter

func (x *Stats) GetShardsSkippedFilter() int64

func (*Stats) GetWait

func (x *Stats) GetWait() *durationpb.Duration

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

func (x *Stats) ProtoReflect() protoreflect.Message

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Substring.ProtoReflect.Descriptor instead.

func (*Substring) GetCaseSensitive

func (x *Substring) GetCaseSensitive() bool

func (*Substring) GetContent

func (x *Substring) GetContent() bool

func (*Substring) GetFileName

func (x *Substring) GetFileName() bool

func (*Substring) GetPattern

func (x *Substring) GetPattern() string

func (*Substring) ProtoMessage

func (*Substring) ProtoMessage()

func (*Substring) ProtoReflect

func (x *Substring) ProtoReflect() protoreflect.Message

func (*Substring) Reset

func (x *Substring) Reset()

func (*Substring) String

func (x *Substring) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetExpr

func (x *Symbol) GetExpr() *Q

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

func (x *Symbol) ProtoReflect() protoreflect.Message

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetChild

func (x *Type) GetChild() *Q

func (*Type) GetType

func (x *Type) GetType() Type_Kind

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

func (x *Type) ProtoReflect() protoreflect.Message

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type Type_Kind

type Type_Kind int32
const (
	Type_KIND_UNKNOWN_UNSPECIFIED Type_Kind = 0
	Type_KIND_FILE_MATCH          Type_Kind = 1
	Type_KIND_FILE_NAME           Type_Kind = 2
	Type_KIND_REPO                Type_Kind = 3
)

func (Type_Kind) Descriptor

func (Type_Kind) Descriptor() protoreflect.EnumDescriptor

func (Type_Kind) Enum

func (x Type_Kind) Enum() *Type_Kind

func (Type_Kind) EnumDescriptor deprecated

func (Type_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type_Kind.Descriptor instead.

func (Type_Kind) Number

func (x Type_Kind) Number() protoreflect.EnumNumber

func (Type_Kind) String

func (x Type_Kind) String() string

func (Type_Kind) Type

type UnimplementedWebserverServiceServer

type UnimplementedWebserverServiceServer struct {
}

UnimplementedWebserverServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWebserverServiceServer) List

func (UnimplementedWebserverServiceServer) Search

func (UnimplementedWebserverServiceServer) StreamSearch

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.

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL