KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
dynacasbin
★ 9
Open GitHub ↗
AutoSave dynamodb adapter for casbin
Download README (.md)
Explore Similar Repositories
alfred-detoxit
:
Типограф для Alfred
StoneAgeAI
:
Repo for Stone Age App/AI
mortgage
:
Deep learning analysis of mortgage prepayment and default and their effects on portfolio value
melt
:
a visual cat-like file viewer with syntax highlighting supporting 2-file views
bisection
:
Very simple to use and robust method that takes array inputs, so it even has advantages over fzero.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
dynacasbin
?
Download (.md)
Dynacasbin ========== Dynacasbin is the [DynamoDB](https://aws.amazon.com/dynamodb/) adapter for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load policy from DynamoDB and auto save during add/remove policy. > code is inspired by [github.com/hooqtv/dynacasbin](https://github.com/HOOQTV/dynacasbin), and autoSave support for it. ## Installation ```go go get github.com/newbmiao/dynacasbin ``` ## Simple Example see more detail in [examples](/examples) ## Notes - No need use LoadPolicy and SavePolicy. Auto save is supported now. SavePolicy is overwrite by just batch putItems without recreate table and adapter.loadPolicy after. Cause dynamodb recreate table has latency, and adapter.loadPolicy is repeat not reload when call it multi times. which is unreliable. - About policy unique ID is hash key which value is unique by use md5(policy) - About RemoveFilteredPolicy RemoveFilteredPolicy is implement by getAllItems and then filter items to delete. This may has latency when data is so big. Use as appropriate. ## Getting Help - [Casbin](https://github.com/casbin/casbin) - [guregu/dynamo](https://github.com/guregu/dynamo) ## Other Choice Wana some other choice? There is a flexible and powerful open policy engine, named [OPA](https://www.openpolicyagent.org/), you can refer to [opa-koans](https://github.com/NewbMiao/opa-koans) and get start from there.