Versions in this module Expand all Collapse all v0 v0.12.0 Jul 19, 2026 Changes in this version + func ConfiguredCloneBaseURLs(cfg Config) []string + func EnvDuration(name string, fallback time.Duration) time.Duration + func EnvInt(name string, fallback int) int + func EnvIsSet(name string) bool + func HandleHealth(w http.ResponseWriter, r *http.Request) + func IsLoopbackHTTPAddr(addr string) bool + func MCPAuthMiddleware(token string, next http.Handler) http.Handler + func ReadyHandler(check func(*http.Request) error) http.Handler + func RunStreamableHTTP(deps HostDeps, cfg Config) error + func StatusHandler(dbCheck func(*http.Request) error, webhookTimeout time.Duration, ...) http.Handler + func ValidateBearerToken(header, expected string) bool + func ValidateConfig(cfg Config) error + func ValidateHTTPExposure(cfg Config) error + func WebhookBlockingReadyCheck(q *reposync.SyncQueue, timeout time.Duration) error + func WebhookRepoStatsDegraded(stats reposync.RepoStats) bool + func WebhookStatsBlockingReady(stats reposync.SyncQueueStats, timeout time.Duration) error + func WebhookStatsDegraded(stats reposync.SyncQueueStats) bool + func WithHTTPTraceContext(next http.Handler) http.Handler + type Config struct + AllowRepo []string + CacheTTL time.Duration + HTTPAddr string + HTTPBearerToken string + InsecureHTTP bool + InsecureWebhook bool + MaxFileBytes int64 + MaxTotalParsedBytes int64 + NamespaceRoot string + NoCache bool + OTELEndpoint string + RagIndexDir string + RepoCloneBaseURL string + RepoCloneBaseURLs []string + RepoRoot string + Stateless bool + Transport string + WebhookAttemptTimeout time.Duration + WebhookFailOnUnreadable bool + WebhookMaxTrackedRepos int + WebhookRetryAttempts int + WebhookRetryBaseDelay time.Duration + WebhookRetryMaxDelay time.Duration + WebhookSecret string + WebhookShutdownTimeout time.Duration + WebhookWorkers int + WikiDir string + func DefaultConfig() Config + type HostDeps struct + CleanupQueue func() + DBReady func(*http.Request) error + Logger *slog.Logger + MCPServer *mcpgo.MCPServer + SyncQueue *reposync.SyncQueue + Webhook http.Handler + WikiAPI http.Handler + WikiStatic http.Handler