Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Environment = &EnvironmentModel{}
Functions ¶
func InitSystem ¶
func LoadConfig ¶
Types ¶
type Apollo ¶ added in v0.2.4
type Apollo struct { AppId string `toml:"appId" json:"appId"` Cluster string `toml:"cluster" json:"cluster"` Ip string `toml:"ip" json:"ip"` NamespaceName string `toml:"namespaceName" json:"namespaceName"` IsBackupConfig bool `toml:"isBackupConfig" json:"isBackupConfig"` Secret string `toml:"secret" json:"secret"` }
type EnvironmentModel ¶ added in v0.2.4
type Gin ¶
type Gin struct { Port int64 `toml:"port"` // 端口号 Pprof bool `toml:"pprof"` PprofSecret string `toml:"pprofSecret"` BasePath string `toml:"basePath"` // 请求根路径 Session string `toml:"session"` SessionId string `toml:"sessionId"` SessionFile string `toml:"sessionFile"` SessionSecret string `toml:"sessionSecret"` }
type Mysql ¶
type Mysql struct { TimeZone string `toml:"timeZone"` // 时区 Username string `toml:"username"` // 用户名 Password string `toml:"password"` // 密码 Addr string `toml:"addr"` // 地址 Database string `toml:"database"` // 数据库名 ShowSql bool `toml:"showSql"` // 打印sql MaxIdleConn int `toml:"maxIdleConn"` // 最大闲置链接数 MaxOpenConn int `toml:"maxOpenConn"` // 最大活跃连接数 Timeout int64 `toml:"timeout"` // 请求超时时间(单位毫秒) }
Click to show internal directories.
Click to hide internal directories.