Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Mode string `yaml:"mode"`
Trust TrustConfig `yaml:"trust"`
Verify VerifyConfig `yaml:"verify"`
Custom CustomConfig `yaml:"custom"`
}
type ClaimsConfig ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Database DatabaseConfig `yaml:"database"`
Auth AuthConfig `yaml:"auth"`
Webhook WebhookConfig `yaml:"webhook"`
Expiry ExpiryConfig `yaml:"expiry"`
Tenant TenantConfig `yaml:"tenant"`
Metrics MetricsConfig `yaml:"metrics"`
Console ConsoleConfig `yaml:"console"`
}
type ConsoleConfig ¶
type ConsoleConfig struct {
Enabled bool `yaml:"enabled"`
JWTSecret string `yaml:"jwt_secret"`
SecureCookies bool `yaml:"secure_cookies"`
Suggestions SuggestionsConfig `yaml:"suggestions"`
}
type CustomConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Driver string `yaml:"driver"`
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Name string `yaml:"name"`
Params map[string]string `yaml:"params"`
MaxOpenConns int `yaml:"max_open_conns"`
MaxIdleConns int `yaml:"max_idle_conns"`
}
func (DatabaseConfig) DSN ¶
func (d DatabaseConfig) DSN() string
type ExpiryConfig ¶
type MetricsConfig ¶
type ServerConfig ¶
func (ServerConfig) Addr ¶
func (s ServerConfig) Addr() string
type SuggestionsConfig ¶ added in v0.1.2
type TenantConfig ¶
type TrustConfig ¶
type VerifyConfig ¶
type VerifyConfig struct {
JWKSURL string `yaml:"jwks_url"`
Issuer string `yaml:"issuer"`
Audience string `yaml:"audience"`
Claims ClaimsConfig `yaml:"claims"`
}
type WebhookConfig ¶
type WebhookConfig struct {
MaxRetries int `yaml:"max_retries"`
RetryInterval time.Duration `yaml:"retry_interval"`
RetryWindow time.Duration `yaml:"retry_window"`
MaxRetryDelay time.Duration `yaml:"max_retry_delay"`
Timeout time.Duration `yaml:"timeout"`
Heartbeat time.Duration `yaml:"heartbeat"`
OutboxRetention time.Duration `yaml:"outbox_retention"`
BlockPrivateIPs bool `yaml:"block_private_ips"`
}
Click to show internal directories.
Click to hide internal directories.