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
Database DatabaseConfig
Log LogConfig
}
type DatabaseConfig ¶
type DatabaseConfig struct {
Host string `koanf:"host"`
Port int `koanf:"port"`
User string `koanf:"user"`
Password string `koanf:"password"`
Name string `koanf:"name"`
SSLMode string `koanf:"sslmode"`
MigrationsPath string `koanf:"migrations_path"`
}
func (DatabaseConfig) DSN ¶
func (d DatabaseConfig) DSN() string
Click to show internal directories.
Click to hide internal directories.