Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("invalid configuration")
Functions ¶
This section is empty.
Types ¶
type ArchiveLimits ¶
type Config ¶
type Config struct {
ListenAddress, ZoektURL, RepositoriesFile, SearchBackend string
UserToken, AdminToken string
UserRepositories, AdminRepositories []string
DatabaseURL string
GitHub GitHub
Graph Graph
Indexer Indexer
UserInstallationID, AdminInstallationID int64
UserRepositoryIDs, AdminRepositoryIDs []int64
Limits Limits
SSO SSO
SCIM SCIM
}
type GitHubOAuth ¶
type GitHubOAuth struct {
Enabled bool
ClientID string
ClientSecretFile string
// AccessSync provisions users on first sign-in and mirrors the repositories
// they can reach through the configured GitHub App. It requires the OAuth
// client to be that GitHub App's own OAuth credential.
AccessSync bool
}
type Graph ¶
type Graph struct {
DefaultImpactDepth, MaxImpactDepth, DefaultTraceDepth int
MaxTraceDepth, MaxRows, MaxNodes, MaxEdges int
MaxRequestBytes, MaxResponseBytes int64
QueryLimits GraphQueryLimits
}
type GraphQueryLimits ¶
type GraphScanLimits ¶
type Indexer ¶
type Indexer struct {
DatabaseURL, ZoektURL, MetricsListenAddress string
GitHub GitHub
DataDir, IndexDir, GitPath, ZoektIndex, ZoektGitIndex, WorkerID string
ZoektGitIndexDeprecated bool
MinFreeBytes, MaxRepositoryBytes int64
SourceProvider string
ArchiveLimits ArchiveLimits
}
func LoadIndexer ¶
type MCPOAuth ¶
MCPOAuth turns GraphNest into an OAuth 2.1 authorization server for MCP clients: they sign in through the browser provider and receive short-lived access tokens for /mcp. KeyFile holds the 32-byte key that seals the GitHub token kept for refresh-time access sync; it is required only when GitHub access sync is enabled.
type OAuth ¶
type OAuth struct{ GitHub GitHubOAuth }