Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConfigDirPerm is the permission for the config directory (0700 = rwx------) // Restrictive permissions protect the directory from being accessed by other users ConfigDirPerm os.FileMode = 0700 // ConfigFilePerm is the permission for the config file (0600 = rw-------) // Restrictive permissions protect the API key from being read by other users ConfigFilePerm os.FileMode = 0600 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
APIKey string `mapstructure:"api_key"`
Model string `mapstructure:"model"`
ShowDiff bool `mapstructure:"show_diff"`
AutoCopy bool `mapstructure:"auto_copy"`
Mode string `mapstructure:"mode"`
Language string `mapstructure:"language"`
TranslationLanguage string `mapstructure:"translation_language"`
CacheEnabled bool `mapstructure:"cache_enabled"`
CacheTTLDays int `mapstructure:"cache_ttl_days"`
RateLimitEnabled bool `mapstructure:"rate_limit_enabled"`
RateLimitRequests int `mapstructure:"rate_limit_requests"`
RateLimitWindow int `mapstructure:"rate_limit_window_seconds"`
RequestTimeoutSeconds int `mapstructure:"request_timeout_seconds"`
}
Click to show internal directories.
Click to hide internal directories.