Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + func Health(w http.ResponseWriter, r *http.Request) + func ValidateGitHubSignature(body []byte, signature, secret string) bool + type AddRepoRequest struct + Branches []string + CloneURL string + ConnectionID int64 + DefaultBranch string + Name string + type BlobAPIResponse struct + Binary bool + Content string + Language string + LanguageMode string + Path string + Ref string + Size int64 + type BranchesResponse struct + Branches []string + DefaultBranch string + Tags []string + type ConnectionResponse struct + CleanupArchived bool + CreatedAt string + ExcludeArchived bool + ID int64 + Name string + TokenSet bool + Type string + URL string + type ConnectionsStatusResponse struct + Message string + ReadOnly bool + type CreateConnectionRequest struct + CleanupArchived bool + ExcludeArchived bool + Name string + Token string + Type string + URL string + type FileSymbol struct + Column int + Kind string + Line int + Name string + Parent string + Signature string + type FileSymbolsResponse struct + Path string + Symbols []FileSymbol + type FilterSuggestion struct + Description string + Example string + Keyword string + type FindReferencesRequest struct + Column int + FilePath string + Limit int + Line int + type FindReferencesResponse struct + Definition *scip.Occurrence + Found bool + References []scip.Occurrence + Symbol string + TotalCount int + type FindRefsRequest struct + Language string + Limit int + Repos []string + Symbol string + type FindSymbolsRequest struct + Kind string + Language string + Limit int + Name string + Repos []string + type GoToDefinitionRequest struct + Column int + FilePath string + Line int + type GoToDefinitionResponse struct + Definition *scip.Occurrence + External bool + Found bool + Info *scip.SymbolInfo + Symbol string + type Handler struct + func NewHandlerWithOptions(services *Services, opts HandlerOptions) *Handler + func (h *Handler) AddRepo(w http.ResponseWriter, r *http.Request) + func (h *Handler) BulkCancelJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) BulkDeleteJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) CancelJob(w http.ResponseWriter, r *http.Request) + func (h *Handler) CleanupJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) CleanupStaleIndexing(w http.ResponseWriter, r *http.Request) + func (h *Handler) CreateConnection(w http.ResponseWriter, r *http.Request) + func (h *Handler) DeleteAllJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) DeleteConnection(w http.ResponseWriter, r *http.Request) + func (h *Handler) DeleteRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) ExcludeRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) FindRefs(w http.ResponseWriter, r *http.Request) + func (h *Handler) FindSymbols(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetBlob(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetBranchesAndTags(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetConnection(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetConnectionStats(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetConnectionsStatus(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetFileSymbols(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetJob(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetQueueStats(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetRaw(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetReplaceJob(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetRepoStats(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetSchedulerStats(w http.ResponseWriter, r *http.Request) + func (h *Handler) GetUISettings(w http.ResponseWriter, r *http.Request) + func (h *Handler) HandleWebhook(w http.ResponseWriter, r *http.Request) + func (h *Handler) IncludeRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListConnectionRepos(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListConnections(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListReplaceJobs(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListRepos(w http.ResponseWriter, r *http.Request) + func (h *Handler) ListTree(w http.ResponseWriter, r *http.Request) + func (h *Handler) LookupRepoByName(w http.ResponseWriter, r *http.Request) + func (h *Handler) Ready(w http.ResponseWriter, r *http.Request) + func (h *Handler) RebuildJobIndexes(w http.ResponseWriter, r *http.Request) + func (h *Handler) ReplaceExecute(w http.ResponseWriter, r *http.Request) + func (h *Handler) ReplacePreview(w http.ResponseWriter, r *http.Request) + func (h *Handler) ReposStatus(w http.ResponseWriter, r *http.Request) + func (h *Handler) RestoreRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) Search(w http.ResponseWriter, r *http.Request) + func (h *Handler) SearchStream(w http.ResponseWriter, r *http.Request) + func (h *Handler) SearchSuggestions(w http.ResponseWriter, r *http.Request) + func (h *Handler) SetRepoBranches(w http.ResponseWriter, r *http.Request) + func (h *Handler) SetRepoPollInterval(w http.ResponseWriter, r *http.Request) + func (h *Handler) SyncConnection(w http.ResponseWriter, r *http.Request) + func (h *Handler) SyncRepoByID(w http.ResponseWriter, r *http.Request) + func (h *Handler) TestConnection(w http.ResponseWriter, r *http.Request) + func (h *Handler) TriggerSyncAll(w http.ResponseWriter, r *http.Request) + func (h *Handler) UpdateConnection(w http.ResponseWriter, r *http.Request) + type HandlerOptions struct + ConnectionsReadOnly bool + ReposReadOnly bool + SchedulerConfig SchedulerConfig + SearchConfig SearchConfig + UIConfig UIConfig + type HealthCheck struct + Latency string + Message string + Status string + type HealthResponse struct + Checks map[string]HealthCheck + Status string + type IndexSCIPRequest struct + Language string + type IndexSCIPResponse struct + Duration string + Error string + Files int + Language string + Occurrences int + Output string + Success bool + Symbols int + type LanguageSuggestion struct + Name string + type ListReposResponse struct + HasMore bool + Limit int + Offset int + Repos []RepositoryResponse + TotalCount int + type PreviewMatch struct + Column int + ConnectionHasToken bool + ConnectionID *int64 + ConnectionName string + Content string + Context ResultContext + File string + Language string + Line int + MatchEnd int + MatchStart int + Repo string + RepositoryID int64 + type QueueStatsResponse struct + PendingJobs int64 + type Reference struct + Column int + Context string + File string + Line int + Repo string + type ReplaceExecuteRequest struct + BranchName string + CaseSensitive bool + FilePatterns []string + IsRegex bool + MRDescription string + MRTitle string + Matches []ReplaceMatch + ReplaceWith string + SearchPattern string + UserTokens map[string]string + type ReplaceMatch struct + FilePath string + RepositoryID int64 + RepositoryName string + type ReplacePreviewRequest struct + CaseSensitive bool + ContextLines int + FilePatterns []string + IsRegex bool + Languages []string + Limit *int + ReplaceWith string + Repos []string + SearchPattern string + type RepoStatsResponse struct + Excluded int + Failed int + Indexed int + Indexing int + Pending int + Total int + type RepoSuggestion struct + DisplayName string + FullName string + Name string + Status string + type RepositoryResponse struct + Branches []string + CloneURL string + DefaultBranch string + Deleted bool + Excluded bool + ID int64 + LastIndexed string + Name string + Status string + type ResultContext struct + After []string + Before []string + type SCIPHandler struct + func NewSCIPHandler(services *Services, scipSvc *scip.Service) *SCIPHandler + func (h *SCIPHandler) ClearSCIPIndex(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) FindReferences(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) GetAvailableIndexers(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) GetSCIPStatus(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) GoToDefinition(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) IndexRepository(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) ListFiles(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) SearchSymbols(w http.ResponseWriter, r *http.Request) + func (h *SCIPHandler) UploadSCIPIndex(w http.ResponseWriter, r *http.Request) + type SCIPStatusResponse struct + AvailableIndexers map[string]bool + HasIndex bool + Stats map[string]any + type SchedulerConfig struct + CheckInterval time.Duration + Enabled bool + PollInterval time.Duration + type SchedulerStatsResponse struct + CheckInterval string + Enabled bool + FailedRepos int + IndexedRepos int + IndexingRepos int + NextCheckAt time.Time + PendingRepos int + PollInterval string + StaleRepos int + TotalRepos int + type SearchConfig struct + EnableStreaming bool + type SearchSuggestionsResponse struct + Filters []FilterSuggestion + Languages []LanguageSuggestion + Repos []RepoSuggestion + type SearchSymbolsRequest struct + Limit int + Query string + type Services struct + AuditLogger audit.AuditLogger + Authenticator middleware.Authenticator + Authorizer middleware.Authorizer + FederatedFiles *files.FederatedClient + FederatedSCIP *scip.FederatedClient + Files *files.Service + IndexPath string + Logger *zap.Logger + Pool db.Pool + Queue *queue.Queue + Redis *redis.Client + Replace *replace.Service + Repos *repos.Service + ReposPath string + Search *search.Service + SearchResultFilter func(ctx context.Context, results []search.SearchResult) []search.SearchResult + Symbols *symbols.Service + func NewServices(pool db.Pool, redisClient *redis.Client, zoektURL, indexPath, reposPath string, ...) *Services + type SetRepoBranchesRequest struct + Branches []string + type SetRepoPollIntervalRequest struct + IntervalSeconds int + type Symbol struct + Column int + File string + Kind string + Language string + Line int + Name string + Repo string + Signature string + type TreeResponse struct + Entries []files.TreeEntry + Path string + Ref string + type TriggerSyncAllRequest struct + Force bool + type UIConfig struct + AuthEnabled bool + DisableBrowseAPI bool + HideConnectionsPage bool + HideFileNavigator bool + HideJobsPage bool + HideReadOnlyBanner bool + HideReplacePage bool + HideReposPage bool + type UISettingsResponse struct + AuthEnabled bool + ConnectionsReadOnly bool + DisableBrowseAPI bool + EnableStreaming bool + HideConnectionsPage bool + HideFileNavigator bool + HideJobsPage bool + HideReadOnlyBanner bool + HideReplacePage bool + HideReposPage bool + ReposReadOnly bool + type UpdateConnectionRequest struct + CleanupArchived bool + ExcludeArchived bool + Name string + Token string + Type string + URL string + type WebhookConfig struct + Secret string