enforcer

package
v0.0.0-...-8f419a9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdapterDb

func GetAdapterDb() (*gorm.DB, error)

GetAdapterDb 获取gorm的db

func GetSyncedEnforcer

func GetSyncedEnforcer() (*casbin.SyncedEnforcer, error)

GetSyncedEnforcer 获取casbin的enforcer

func NewSyncedEnforcer

func NewSyncedEnforcer(db *gorm.DB) (*casbin.SyncedEnforcer, error)

NewSyncedEnforcer 创建casbin的enforcer

Types

This section is empty.

Jump to

Keyboard shortcuts

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