Registry / auth / casbin-gorm-adapter-v2

casbin-gorm-adapter-v2

JSON →
library2.1.0gogounverified

A GORM adapter for Casbin that stores access control policies in a database.

go get github.com/casbin/gorm-adapter/v2
INSTALL
IMPORT
SIG · CASBIN-GORM-ADAPTE
C
casbin-gorm-adapter-v2
authgov2.1.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/v2

Initialize a Casbin enforcer with a GORM-backed policy store.

package main import ( "github.com/casbin/casbin/v2" "github.com/casbin/gorm-adapter/v2" "gorm.io/driver/sqlite" "gorm.io/gorm" ) func main() { a, _ := gormadapter.NewAdapter("sqlite3", "test.db") e, _ := casbin.NewEnforcer("model.conf", a) _ = e }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
casbin-gorm-adapter-v2 — go get casbin-gorm-adapter-v2 · libregistry