package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Oct 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Engines 依赖引擎封装
desc: Engines将在本系统中传递,而不再单独传递某个依赖
如有其它引擎,加入变量即可
func NewEngines(engine *xorm.Engine, rdb *redis.Client, enc *casbin.SyncedEnforcer) *Engines
NewEngines 新建
func (dep *Engines) Casbin() *casbin.SyncedEnforcer
Casbin Enforcer
func (dep *Engines) Redis() *redis.Client
Redis client
Source Files
¶
Click to show internal directories.
Click to hide internal directories.