Discover Packages
github.com/livegrep/livegrep
server
api
package
Version:
v0.0.0-...-853379e
Opens a new window with list of versions in this module.
Published: Dec 28, 2024
License: BSD-2-Clause-Views
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type FileResult struct {
Tree string `json:"tree"`
Version string `json:"version"`
Path string `json:"path"`
Bounds [2]int `json:"bounds"`
}
type InnerError struct {
Code string `json:"code"`
Message string `json:"message"`
}
type ReplyError struct {
Err InnerError `json:"error"`
}
ReplyError is returned along with any non-200 status reply
type ReplySearch struct {
Info *Stats `json:"info"`
Results []*Result `json:"results"`
FileResults []*FileResult `json:"file_results"`
SearchType string `json:"search_type"`
}
ReplySearch is returned to /api/v1/search/:backend
type Result struct {
Tree string `json:"tree"`
Version string `json:"version"`
Path string `json:"path"`
LineNumber int `json:"lno"`
ContextBefore []string `json:"context_before"`
ContextAfter []string `json:"context_after"`
Bounds [2]int `json:"bounds"`
Line string `json:"line"`
}
type Stats struct {
RE2Time int64 `json:"re2_time"`
GitTime int64 `json:"git_time"`
SortTime int64 `json:"sort_time"`
IndexTime int64 `json:"index_time"`
AnalyzeTime int64 `json:"analyze_time"`
TotalTime int64 `json:"total_time"`
ExitReason string `json:"why"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.