Registry / auth / casbin-gorm-adapter

casbin-gorm-adapter

JSON →
library1.0.0gogounverified

GORM adapter for Casbin, providing policy storage in databases.

go get github.com/casbin/gorm-adapter
INSTALL
IMPORT
SIG · CASBIN-GORM-ADAPTE
C
casbin-gorm-adapter
authgov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gormadapter
github.com/casbin/gorm-adapter

Initialize Casbin with GORM adapter

package main import ( "github.com/casbin/casbin/v2" "github.com/casbin/gorm-adapter/v3" ) func main() { a, _ := gormadapter.NewAdapter("mysql", "root:@tcp(127.0.0.1:3306)/casbin") e, _ := casbin.NewEnforcer("model.conf", a) _ = e }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
32
Resources
casbin-gorm-adapter — go get casbin-gorm-adapter · libregistry