Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Application
AppEnv string
LogLevel string
UserID string
EncryptionKey string
// Database
DatabaseURL string
DatabaseDriver string // "postgres", "sqlite", or "auto" (default)
SQLitePath string // Path to SQLite database file (default: ~/.orbita/data.db)
LocalMode bool // If true, uses SQLite and disables external services
// Redis
RedisURL string
// RabbitMQ
RabbitMQURL string
// Outbox
OutboxPollInterval time.Duration
OutboxBatchSize int
OutboxMaxRetries int
OutboxStatsInterval time.Duration
OutboxRetentionDays int
OutboxCleanupInterval time.Duration
OutboxProcessorEnabled bool
// Worker
WorkerHealthAddr string
// OAuth
OAuthProvider string
OAuthClientID string
OAuthClientSecret string
OAuthAuthURL string
OAuthTokenURL string
OAuthRedirectURL string
OAuthScopes string
// Calendar
CalendarDeleteMissing bool
CalendarID string
// Calendar Sync (bi-directional)
CalendarSyncEnabled bool // Enable automatic calendar sync
CalendarSyncInterval time.Duration // How often to check for external changes
CalendarSyncLookAheadDays int // How far ahead to look for events
CalendarConflictStrategy string // orbita_wins, external_wins, manual, time_first
CalendarAutoScheduleTasks bool // Auto-schedule new tasks
CalendarAutoScheduleHabits bool // Auto-schedule habit sessions
CalendarAutoScheduleMeetings bool // Auto-schedule meeting blocks
// Billing
StripeAPIKey string
StripeWebhookSecret string
// MCP
MCPAddr string
MCPAuthToken string
// Plugins
OrbitSearchPaths []string
EngineSearchPaths []string
// Marketplace
MarketplaceURL string
MarketplaceInstallDir string
}
Config holds application configuration.
func (*Config) IsDevelopment ¶
IsDevelopment returns true if running in development mode.
func (*Config) IsLocalMode ¶ added in v0.4.0
IsLocalMode returns true if using SQLite local mode.
func (*Config) IsPostgres ¶ added in v0.4.0
IsPostgres returns true if using PostgreSQL as the database.
func (*Config) IsProduction ¶
IsProduction returns true if running in production mode.
func (*Config) LicenseFilePath ¶ added in v0.4.0
LicenseFilePath returns the path to the license file.
Click to show internal directories.
Click to hide internal directories.