batch

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL