Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
OpenAIKey string `json:"openai_key"`
SMTP SMTPConfig `json:"smtp"`
Spotify SpotifyConfig `json:"spotify"`
ExternalURL string `json:"external_url"`
SessionSecret string `json:"session_secret"`
GoogleClientID string `json:"google_client_id"`
GoogleClientSecret string `json:"google_client_secret"`
Blog BlogConfig `json:"blog"`
Stripe Stripe `json:"stripe"`
Figma string `json:"figma"`
Github GithubConfig `json:"github"`
Proxy ProxyConfig `json:"proxy"`
Admins []string `json:"admins"`
DB string `json:"db"`
DSN string `json:"dsn"`
JamsocketURL string `json:"jamsocket_url"`
SupabaseURL string `json:"supabase_url"`
ClaudeDebug bool `json:"claude_debug"`
// New configuration sections
SlackBot SlackBotConfig `json:"slack_bot"`
Claude ClaudeConfig `json:"claude"`
Worklet WorkletConfig `json:"worklet"`
Git GitConfig `json:"git"`
}
func LoadConfig ¶
func LoadConfig() AppConfig
func (*AppConfig) GetClaudeConfig ¶
func (c *AppConfig) GetClaudeConfig() *ClaudeConfig
GetClaudeConfig returns the Claude configuration
func (*AppConfig) GetGitConfig ¶
GetGitConfig returns the Git configuration
func (*AppConfig) GetSlackBotConfig ¶
func (c *AppConfig) GetSlackBotConfig() *SlackBotConfig
GetSlackBotConfig returns the Slack bot configuration
func (*AppConfig) GetWorkletConfig ¶
func (c *AppConfig) GetWorkletConfig() *WorkletConfig
GetWorkletConfig returns the Worklet configuration
func (*AppConfig) IsSlackBotEnabled ¶
IsSlackBotEnabled returns true if the Slack bot is enabled and has valid configuration
type BlogConfig ¶
type ClaudeConfig ¶
type GithubConfig ¶
type ProxyConfig ¶
type SMTPConfig ¶
type SlackBotConfig ¶
type SlackBotConfig struct {
Enabled bool `json:"enabled"`
SlackAppID string `json:"app_id"`
SlackClientID string `json:"client_id"`
SlackClientSecret string `json:"client_secret"`
SlackSigningSecret string `json:"signing_secret"`
SlackToken string `json:"token"`
BotToken string `json:"bot_token"`
SessionTimeout time.Duration `json:"session_timeout"`
MaxSessions int `json:"max_sessions"`
WorkingDirectory string `json:"working_directory"`
Debug bool `json:"debug"`
ChannelWhitelist []string `json:"channel_whitelist"`
// Ideation settings
IdeationEnabled bool `json:"ideation_enabled"`
IdeationTimeout time.Duration `json:"ideation_timeout"`
MaxIdeationSessions int `json:"max_ideation_sessions"`
AutoExpandThreshold int `json:"auto_expand_threshold"`
}
type SpotifyConfig ¶
Click to show internal directories.
Click to hide internal directories.