Versions in this module Expand all Collapse all v0 v0.9.0 May 5, 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 Run(rt *core.Runtime, cfg Config, ...) error + func RunStreamableHTTP(rt *core.Runtime, srv *mcpgo.MCPServer, cfg Config, cache *mcp.Cache, ...) 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 *webhook.SyncQueue, timeout time.Duration) error + func WebhookRepoStatsDegraded(stats webhook.RepoStats) bool + func WebhookStatsBlockingReady(stats webhook.SyncQueueStats, timeout time.Duration) error + func WebhookStatsDegraded(stats webhook.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 + 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 + WorkspaceRoot string + func DefaultConfig() Config