MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / engineImpl

Struct engineImpl

internal/authorization/engine/openfga/openfga.go:73–81  ·  view source on GitHub ↗

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).

Source from the content-addressed store, hash-verified

71// server. storeID and modelID are mutated under mu when a store/model is
72// bootstrapped at runtime (memory store / first boot).
73type 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.
84var _ engine.AuthorizationEngine = &engineImpl{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected