engineImpl implements engine.AuthorizationEngine over an embedded OpenFGA server. storeID and modelID are mutated under mu when a store/model is bootstrapped at runtime (memory store / first boot).
| 71 | // server. storeID and modelID are mutated under mu when a store/model is |
| 72 | // bootstrapped at runtime (memory store / first boot). |
| 73 | type engineImpl struct { |
| 74 | log *zerolog.Logger |
| 75 | srv *server.Server |
| 76 | ds storage.OpenFGADatastore |
| 77 | mu sync.RWMutex |
| 78 | storeID string |
| 79 | modelID string |
| 80 | storeName string |
| 81 | } |
| 82 | |
| 83 | // Compile-time interface verification. |
| 84 | var _ engine.AuthorizationEngine = &engineImpl{} |
nothing calls this directly
no outgoing calls
no test coverage detected