engine

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engines

type Engines struct {
	// contains filtered or unexported fields
}

Engines 依赖引擎封装 desc: Engines将在本系统中传递,而不再单独传递某个依赖 如有其它引擎,加入变量即可

func NewEngines

func NewEngines(engine *xorm.Engine, rdb *redis.Client, enc *casbin.SyncedEnforcer) *Engines

NewEngines 新建

func (*Engines) Casbin

func (dep *Engines) Casbin() *casbin.SyncedEnforcer

Casbin Enforcer

func (*Engines) Orm

func (dep *Engines) Orm() *xorm.Engine

Orm Xorm

func (*Engines) Redis

func (dep *Engines) Redis() *redis.Client

Redis client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL