Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationFiles embed.FS
Functions ¶
func InitializeDB ¶
InitializeDB creates the database file and runs migrations if needed.
func ParseCommands ¶
Types ¶
type Config ¶
type Config struct {
Environment string `mapstructure:"ENVIRONMENT"`
DBSource string `mapstructure:"DB_SOURCE"`
// Map of model configurations
Models map[string]ModelConfig `mapstructure:"AI_MODELS"`
}
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type ModelConfig ¶
type ModelConfig struct {
Name string `mapstructure:"NAME"`
BaseURL string `mapstructure:"BASE_URL"`
APIKey string `mapstructure:"API_KEY"`
}
Config stores all configuration of the application. The values are read by viper from a config file or environment variable.
Click to show internal directories.
Click to hide internal directories.