Documentation
¶
Overview ¶
Package batch defines the optional BatchAuthorizer sub-interface for authorization backends that support multi-check in a single round-trip.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchAuthorizer ¶
type BatchAuthorizer interface {
authz.Authorizer
BatchCheck(ctx context.Context, reqs []authz.CheckRequest) ([]bool, error)
}
BatchAuthorizer extends Authorizer with a BatchCheck method that runs multiple authorization checks in one round-trip. Output order matches input.
Implementations may internally chunk if the backend has per-call limits (e.g. OpenFGA caps at 50 per request).
Click to show internal directories.
Click to hide internal directories.