MCPcopy Create free account
hub / github.com/apache/casbin-server / Server

Struct Server

server/enforcer.go:31–36  ·  view source on GitHub ↗

Server is used to implement proto.CasbinServer.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected