Discover Packages
github.com/fengjx/go-web-quickstart
internal
app
appconfig
package
Version:
v0.0.0-...-17b6be2
Opens a new window with list of versions in this module.
Published: Nov 23, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DbConfig struct {
Type string `yaml:"type"`
Dsn string `yaml:"dsn"`
MaxIdle int `yaml:"max-idle"`
MaxConn int `yaml:"max-conn"`
ShowSQL bool `yaml:"show-sql"`
}
type RedisConfig struct {
Addr string `yaml:"addr"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
type ServerConfig struct {
Listen string `yaml:"listen"`
Template []string `yaml:"template"`
Static string `yaml:"static"`
AuthSecret string `yaml:"auth-secret"`
Accesslog string `yaml:"accesslog"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.