Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalOPT ¶
type GlobalOPT struct {
// 以下配置项是由应用程序设置
MapCache *cache.Cache
Redis *redis.Client
DB *gorm.DB
DBRO *gorm.DB
// sqlite3
SLDB *gorm.DB
ExtDB map[string]*gorm.DB
ErrLog *mlog.Logger
// 以下配置项由配置文件设置
Prefix string
PrefixLen int `internal:"yes"`
BaseURL string
SessionExpire int64
ExtOPT map[string]string
SessionSecretKey string
SessionSecretKeyBytes []byte
PWDSecretKey string
MaxBodySize int64
Bind string
Port string
PidFile string
LogDir string
LogLevel string
}
GlobalOPT 全局配置
var (
GolbalConf *GlobalOPT
)
func ReadConfigP ¶
Click to show internal directories.
Click to hide internal directories.