Discover Packages
github.com/liushuangls/go-server-template
configs
package
Version:
v0.0.0-...-a3e8f81
Opens a new window with list of versions in this module.
Published: Aug 20, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type App struct {
Addr string `yaml:"Addr"`
Mode string `yaml:"Mode"`
}
type Config struct {
App App `yaml:"App"`
DB DB `yaml:"DB"`
Redis Redis `yaml:"Redis"`
Log xslog .Config `yaml:"Log"`
Jwt Jwt `yaml:"Jwt"`
}
type DB struct {
Dialect string `yaml:"Dialect"`
DSN string `yaml:"DSN"`
MaxIdle int `yaml:"MaxIdle"`
MaxActive int `yaml:"MaxActive"`
MaxLifetime int `yaml:"MaxLifetime"`
AutoMigrate bool `yaml:"AutoMigrate"`
}
type Jwt struct {
Secret string `yaml:"Secret"`
Issuer string `yaml:"Issuer"`
}
type Redis struct {
Addr string `yaml:"Addr"`
DB int `yaml:"DB"`
Password string `yaml:"Password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.