Server is used to implement proto.CasbinServer.
| 29 | |
| 30 | // Server is used to implement proto.CasbinServer. |
| 31 | type Server struct { |
| 32 | enforcerMap map[int]*casbin.Enforcer |
| 33 | adapterMap map[int]persist.Adapter |
| 34 | muE sync.RWMutex |
| 35 | muA sync.RWMutex |
| 36 | } |
| 37 | |
| 38 | func NewServer() *Server { |
| 39 | s := Server{} |
nothing calls this directly
no outgoing calls
no test coverage detected