Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppLibAbsPath string
View Source
var EnvMode string = consts.ENV_DEBUG
Functions ¶
func DefaultLoadFromYaml ¶
func LoadFromYaml ¶
func LoadFromYaml(filePath string)
Types ¶
type AppConfig ¶
type AppConfig struct { Addr string `yaml:"addr"` // 监听端口 Pulic StaticConfig `yaml:"public"` // 静态资源路径 Secret string `yaml:"secret"` // 用于系统加密的秘钥 ViewBaseDir string `yaml:"viewBaseDir"` // view路径 Dblist map[string]DbConfg `yaml:"dblist"` // 数据库连接列表 AppLibAbsPath string // ginapp所在的绝对路径 SessionCnf SessionConfig `yaml:"session"` // session配置 }
* app配置
type SessionConfig ¶
type StaticConfig ¶
* 静态资源配置
Click to show internal directories.
Click to hide internal directories.