Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Port int
UI bool
Postgres PostgresConfig // If empty, uses SQLite
SQLiteDir string // Directory for SQLite DB file; if empty, uses in-memory
TursoDSN string // Turso/libSQL DSN (e.g. "libsql://db-name.turso.io?authToken=...")
EncryptionKey string // Hex-encoded 32-byte key for encrypting secrets at rest
GitHubInsecureSkipVerify bool // Disable TLS certificate verification for GitHub API calls
CorsOrigins []string
TaskTimeout time.Duration // How long before a running task with no heartbeat is considered stale (default: 5m)
LogRetention time.Duration // How long to keep task logs before deleting them (0 = keep forever)
Models []setting.ModelOption // Available Claude models; if empty, uses DefaultModels
}
Config holds the API server configuration.
func (Config) EffectiveModels ¶
func (c Config) EffectiveModels() []setting.ModelOption
EffectiveModels returns the configured models or the default set.
type PostgresConfig ¶
PostgresConfig holds PostgreSQL connection parameters.
func (PostgresConfig) IsSet ¶
func (c PostgresConfig) IsSet() bool
IsSet returns true if Postgres connection parameters are configured.
Click to show internal directories.
Click to hide internal directories.