Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + var ConfigFile string + func DefaultSecretsPaths() []string + func LoadSecretsFromDir(dir string, prefix string, overwrite bool) error + func LoadSecretsFromPaths(paths []string, prefix string, overwrite bool) error + type CodeHost struct + CleanupArchived bool + ExcludeArchived bool + RepoConfigs []RepoConfig + Repos []string + Token string + Type string + URL string + func (ch *CodeHost) ResolveToken() string + type Config struct + CodeHosts map[string]CodeHost + ConnectionsReadOnly bool + Database DatabaseConfig + Indexer IndexerConfig + Metrics MetricsConfig + RateLimit RateLimitConfig + Redis RedisConfig + Replace ReplaceConfig + Repos ReposConfig + ReposReadOnly bool + SCIP SCIPConfig + Scheduler SchedulerConfig + Search SearchConfig + Security SecurityConfig + Server ServerConfig + Sharding ShardingConfig + Tracing TracingConfig + UI UIConfig + Zoekt ZoektConfig + func Load() (*Config, error) + func (c *Config) GetCodeHost(name string) (*CodeHost, bool) + type DatabaseConfig struct + ConnMaxLifetime time.Duration + Driver string + MaxIdleConns int + MaxOpenConns int + URL string + type IndexerConfig struct + Concurrency int + CtagsBin string + IndexAllBranches bool + IndexPath string + IndexTimeout time.Duration + MaxRepoSizeMB int64 + ReindexInterval time.Duration + ReposPath string + RequireCtags bool + ZoektBin string + type MetricsConfig struct + Enabled bool + Path string + type RateLimitConfig struct + BurstSize int + Enabled bool + RequestsPerSecond float64 + type RedisConfig struct + Addr string + DB int + Password string + TLSCACertFile string + TLSCertFile string + TLSEnabled bool + TLSKeyFile string + TLSServerName string + TLSSkipVerify bool + URL string + type ReplaceConfig struct + CloneTimeout time.Duration + Concurrency int + MaxFileSize int64 + PushTimeout time.Duration + WorkDir string + type RepoConfig struct + Branches []string + Delete bool + Exclude bool + Name string + type ReposConfig struct + BasePath string + type SCIPConfig struct + AutoIndex bool + CacheDir string + Enabled bool + Languages map[string]SCIPLanguageConfig + Timeout time.Duration + WorkDir string + type SCIPLanguageConfig struct + BinaryPath string + Enabled bool + type SchedulerConfig struct + CheckInterval time.Duration + Enabled bool + JobRetention time.Duration + MaxConcurrentChecks int + OrphanCleanupInterval time.Duration + PendingJobTimeout time.Duration + PollInterval time.Duration + StaleThreshold time.Duration + type SearchConfig struct + EnableStreaming bool + type SecurityConfig struct + EncryptionKey string + type ServerConfig struct + Addr string + ReadTimeout time.Duration + WriteTimeout time.Duration + type ShardingConfig struct + Enabled bool + FederatedAccess bool + IndexerAPIPort int + IndexerService string + TotalShards int + type TracingConfig struct + Enabled bool + Endpoint string + Environment string + Insecure bool + Protocol string + SampleRate float64 + ServiceName string + ServiceVersion string + type UIConfig struct + DisableBrowseAPI bool + HideConnectionsPage bool + HideFileNavigator bool + HideJobsPage bool + HideReadOnlyBanner bool + HideReplacePage bool + HideReposPage bool + type ZoektConfig struct + IndexPath string + Shards int + URL string