22 lines
364 B
Go
22 lines
364 B
Go
|
package config
|
||
|
|
||
|
// Configuration
|
||
|
type Config struct {
|
||
|
Database *Database
|
||
|
Log *Log
|
||
|
}
|
||
|
|
||
|
// Database configuration
|
||
|
type Database struct {
|
||
|
Backend string `toml:"backend"`
|
||
|
URL string `toml:"url"`
|
||
|
SSL bool `toml:"ssl"`
|
||
|
Max int `toml:"max"`
|
||
|
Idle int `toml:"idle"`
|
||
|
}
|
||
|
|
||
|
// Log configuration
|
||
|
type Log struct {
|
||
|
Level string `toml:"level"`
|
||
|
}
|