Documentation
¶
Overview ¶
Package rule provides Ent privacy rules for AgentComms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTenantRule ¶
func FilterTenantRule() privacy.QueryMutationRule
FilterTenantRule returns a privacy rule that filters queries and mutations by tenant_id. It extracts the tenant ID from context and adds a WHERE clause to filter by tenant_id. This rule works on both SQLite and PostgreSQL.
Types ¶
type TenantFilter ¶
TenantFilter is an interface for filtering by tenant_id. Both AgentQuery and EventQuery implement this through their Filter() method.
Click to show internal directories.
Click to hide internal directories.