Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zcyc/gf-adapter
GoFrame adapter of casbin
https://github.com/zcyc/gf-adapter
Last synced: about 2 months ago
JSON representation
GoFrame adapter of casbin
- Host: GitHub
- URL: https://github.com/zcyc/gf-adapter
- Owner: zcyc
- License: apache-2.0
- Created: 2022-07-21T03:48:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-11T03:22:07.000Z (over 1 year ago)
- Last Synced: 2024-06-21T18:48:51.008Z (7 months ago)
- Language: Go
- Homepage:
- Size: 121 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gf-adapter
[GF ORM](https://github.com/gogf/gf) adapter for [Casbin](https://github.com/casbin/casbin).
Tested in:
- MySQL
## Installation
go get github.com/zcyc/gf-adapter/v2
go mod tidy## Usage example
```go
a, _ := NewAdapter(context.Background(), gdb.DefaultGroupName, "", nil)
```## Notice
you should create the database on your own.
## Getting Help
- [Casbin](https://github.com/casbin/casbin)
## License
This project is under Apache 2.0 License. See the [LICENSE](LICENSE) file for the full license text.