Golang - gofiber-with-casbin授权示例
Casbin是一个支持如ACL, RBAC, ABAC等访问模型的的授权库,支持众多语言。
Fiber is a Go web framework built on top of Fasthttp, the fastest HTTP engine for Go. It’s designed to ease things up for fast development with zero memory allocation and performance in mind.
号称: zero memory allocation
model.conf
1 |
|
policy.csv
1 |
|
main.go
1 |
|
Golang - gofiber-with-casbin授权示例
https://www.boer.xyz/2024/03/24/golang-gofiber-with-casbin/