chore: use interfaces for all other services

This commit is contained in:
Christoph Haas
2025-03-23 23:09:47 +01:00
parent 02ed7b19df
commit 7d0da4e7ad
40 changed files with 1337 additions and 406 deletions

View File

@@ -2,6 +2,8 @@ package config
import "time"
// SupportedDatabase is a type for the supported database types.
// Supported: mysql, mssql, postgres, sqlite
type SupportedDatabase string
const (
@@ -11,6 +13,7 @@ const (
DatabaseSQLite SupportedDatabase = "sqlite"
)
// DatabaseConfig contains the configuration for the database connection.
type DatabaseConfig struct {
// Debug enables logging of all database statements
Debug bool `yaml:"debug"`