Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GVA_DB *gorm.DB GVA_DBList map[string]*gorm.DB GVA_REDIS *redis.Client GVA_CONFIG config.Server GVA_VP *viper.Viper // GVA_LOG *oplogging.Logger GVA_LOG *zap.Logger GVA_Timer timer.Timer = timer.NewApiCase() GVA_Concurrency_Control = &singleflight.Group{} BlackCache local_cache.Cache DebugTalkLock = make(map[string]*sync.Mutex) DebugTalkFileLock = sync.RWMutex{} HrpMode HrpModes IgnoreInstall bool )
Functions ¶
func GetGlobalDBByDBName ¶
GetGlobalDBByDBName 通过名称获取db list中的db
func MustGetGlobalDBByDBName ¶
MustGetGlobalDBByDBName 通过名称获取db 如果不存在则panic
Types ¶
Click to show internal directories.
Click to hide internal directories.