2024-06-02 11:57:14 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
// Configuration
|
|
|
|
type Config struct {
|
|
|
|
Database *Database
|
|
|
|
Log *Log
|
|
|
|
}
|
|
|
|
|
|
|
|
// Database configuration
|
|
|
|
type Database struct {
|
2024-06-02 11:58:48 +00:00
|
|
|
Driver string `toml:"driver"`
|
|
|
|
URL string `toml:"url"`
|
|
|
|
SSL bool `toml:"ssl"`
|
|
|
|
Max int `toml:"max"`
|
|
|
|
Idle int `toml:"idle"`
|
2024-06-02 11:57:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Log configuration
|
|
|
|
type Log struct {
|
|
|
|
Level string `toml:"level"`
|
|
|
|
}
|