Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Models []models.Model `yaml:"models"`
APIKeys []models.APIKey `yaml:"api_keys"`
}
Config represents the application's configuration
func LoadConfig ¶
/ LoadConfig loads the configuration from the specified file
type ServerConfig ¶
type ServerConfig struct {
// Port to listen on
Port string `yaml:"port"`
// ShutdownTimeout is the timeout for graceful shutdown
ShutdownTimeout time.Duration `yaml:"shutdown_timeout"`
}
ServerConfig represents the server's configuration
Click to show internal directories.
Click to hide internal directories.