Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Config ΒΆ
type Config struct {
Parameters map[string]any `yaml:"parameters"`
Renderer Renderer `yaml:"renderer"`
Router Router `yaml:"router"`
Cache cache.Cache `yaml:"cache"`
Diago Diago `yaml:"diago"`
Gorm GormDatabaseConfig `yaml:"gorm"`
Custom helper.Custom
}
func DefaultConfig ΒΆ
func DefaultConfig() *Config
func LoadConfig ΒΆ
type ConfigInterface ΒΆ
type GormDatabaseConfig ΒΆ
type GormDatabaseConfig struct {
Driver string `mapstructure:"driver"`
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DBName string `mapstructure:"dbname"`
SSLMode string `mapstructure:"sslmode"`
TimeZone string `mapstructure:"timezone"`
MaxIdleConns int `mapstructure:"max_idle_conns"`
MaxOpenConns int `mapstructure:"max_open_conns"`
ConnMaxLifetime time.Duration `mapstructure:"conn_max_lifetime"`
Debug bool `mapstructure:"debug"`
}
func (GormDatabaseConfig) ToGormConfig ΒΆ
func (db GormDatabaseConfig) ToGormConfig() *gorm.Config
ToGormConfig vyexportuje data do struktury z balΓΔku gouef/gorm
type Renderer ΒΆ
type Router ΒΆ
type Router struct {
Statics []RouterStatic `yaml:"statics"`
Proxy RouterProxy `yaml:"proxy"`
Custom helper.Custom
}
type RouterProxy ΒΆ
Click to show internal directories.
Click to hide internal directories.