Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type CORSConfig ¶
type CloudConfig ¶
type Config ¶
type Config struct {
Environment string
Server ServerConfig
Database DatabaseConfig
Logging LoggingConfig
Webhook WebhookConfig
Auth AuthConfig
CORS CORSConfig
Cloud CloudConfig
Integrations IntegrationsConfig
RateLimit RateLimitConfig
Retention RetentionConfig
}
Config is the fully-resolved runtime configuration.
func LoadFromFile ¶
LoadFromFile loads config with precedence: defaults < YAML < env. Secrets referenced via *_env fields are resolved from env vars.
type DatabaseConfig ¶
type DatadogConfig ¶
type IntegrationsConfig ¶
type IntegrationsConfig struct {
Sentry SentryConfig
Datadog DatadogConfig
Slack SlackConfig
}
type LoggingConfig ¶
type RateLimitConfig ¶
type RetentionConfig ¶ added in v1.2.0
type RetentionConfig struct {
// LogRetentionDays — request_logs older than this are swept by the
// trimmer. Defaults to 10.
LogRetentionDays int
// TrimmerIntervalMinutes — how often the trimmer wakes. Defaults to 60.
TrimmerIntervalMinutes int
// DemoWorkspaceDailyCap — requests/day cap for the seeded "local"
// workspace (anonymous demo traffic). 0 = unlimited. Defaults to 200.
// Signed-up workspaces get no cap by default; change via the
// workspaces.max_daily_requests column per-workspace if needed.
DemoWorkspaceDailyCap int
}
RetentionConfig controls the background log-trimmer + anonymous-workspace quota. Hosted deployments tune these to stay within storage limits and prevent a runaway SDK integration from draining the demo's free-tier resources.
type SentryConfig ¶
type ServerConfig ¶
type SlackConfig ¶
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.