Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeSearch ¶
type CodeSearch struct {
Host string // zoekt-webserver host. example: https://zoekt.example.com
Client *http.Client
}
func (*CodeSearch) GetClient ¶
func (s *CodeSearch) GetClient() *http.Client
func (*CodeSearch) RepoCount ¶
func (s *CodeSearch) RepoCount(ctx context.Context) (int, error)
RepoCount returns the total number of repositories in the zoekt index.
func (*CodeSearch) Search ¶
func (s *CodeSearch) Search(ctx context.Context, queryStr string, page pagination.Page) (*SearchResults, error)
Search queries zoekt server for FileNameMatch or ChunkMatch. It returns *RepoOnlyError when the query only filters by repo name (optionally with `lang:` filter.)
type RepoOnlyError ¶
type RepoOnlyError struct{ Query string }
func (*RepoOnlyError) Error ¶
func (e *RepoOnlyError) Error() string
Source Files
¶
- codesearch.go
Click to show internal directories.
Click to hide internal directories.