Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
AdminEmails []string `koanf:"admin_emails"`
SessionDuration time.Duration `koanf:"session_duration"`
MaxConcurrentSessions int `koanf:"max_concurrent_sessions"`
}
AuthConfig contains authentication settings
type ClickhouseConfig ¶
type ClickhouseConfig struct {
Host string `koanf:"host"`
Port int `koanf:"port"`
Database string `koanf:"database"`
Username string `koanf:"username"`
Password string `koanf:"password"`
}
ClickhouseConfig contains Clickhouse database settings
type Config ¶
type Config struct {
Server ServerConfig `koanf:"server"`
SQLite SQLiteConfig `koanf:"sqlite"`
Clickhouse ClickhouseConfig `koanf:"clickhouse"`
OIDC OIDCConfig `koanf:"oidc"`
Auth AuthConfig `koanf:"auth"`
Logging LoggingConfig `koanf:"logging"`
}
Config represents the application configuration
type LoggingConfig ¶
type LoggingConfig struct {
// Level sets the minimum log level (debug, info, warn, error)
Level string `koanf:"level"`
}
LoggingConfig contains logging settings
type OIDCConfig ¶
type OIDCConfig struct {
// Provider URL for OIDC discovery
ProviderURL string `koanf:"provider_url"` // Base URL for OIDC provider discovery
// Different endpoints for OIDC flow
AuthURL string `koanf:"auth_url"` // URL for browser auth redirects
TokenURL string `koanf:"token_url"` // URL for token exchange (server-to-server)
ClientID string `koanf:"client_id"`
ClientSecret string `koanf:"client_secret"`
RedirectURL string `koanf:"redirect_url"`
Scopes []string `koanf:"scopes"`
}
OIDCConfig contains OpenID Connect settings
type SQLiteConfig ¶
type SQLiteConfig struct {
Path string `koanf:"path"`
}
SQLiteConfig contains SQLite database settings
type ServerConfig ¶
type ServerConfig struct {
Port int `koanf:"port"`
Host string `koanf:"host"`
FrontendURL string `koanf:"frontend_url"`
}
ServerConfig contains HTTP server settings
Click to show internal directories.
Click to hide internal directories.