Skip to main content

PolicyGate

Type Alias PolicyGate 

Source
pub type PolicyGate = Arc<dyn Fn(&PeerIdentity, &str) -> bool + Send + Sync>;
Expand description

Evaluates a policy decision for a (subject, tenant, track) tuple. Returns true to allow. This is the seam onto the existing Casbin/PolicyService (PolicyManager::check_with_domain) without hyprstream-rpc depending on the hyprstream crate.

Aliased Typeยง

pub struct PolicyGate { /* private fields */ }