Versions in this module Expand all Collapse all v1 v1.0.0 May 5, 2022 Changes in this version + func MysqlConn(dsn string, moc, mic int) (*gorm.DB, error) + type GlobalOPT struct + BaseURL string + Bind string + DB *gorm.DB + DBRO *gorm.DB + ErrLog *mlog.Logger + ExtDB map[string]*gorm.DB + ExtOPT map[string]string + LogDir string + LogLevel string + MapCache *cache.Cache + MaxBodySize int64 + PWDSecretKey string + PidFile string + Port string + Prefix string + PrefixLen int + Redis *redis.Client + SLDB *gorm.DB + SessionExpire int64 + SessionSecretKey string + SessionSecretKeyBytes []byte + var GolbalConf *GlobalOPT + func GOPT() GlobalOPT + func GOPTP() *GlobalOPT + func ReadConfig(cfile string) (GlobalOPT, error) + func ReadConfigP(cfile string) (*GlobalOPT, error)