Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCheckEngineWithBalancer ¶
func NewCheckEngineWithBalancer( ctx context.Context, checker invoke.Check, schemaReader storage.SchemaReader, dst *config.Distributed, srv *config.GRPC, authn *config.Authn, ) (invoke.Check, error)
NewCheckEngineWithBalancer creates a new check engine with a load balancer. It takes a Check interface, SchemaReader, distributed config, gRPC config, and authn config as input. It returns a Check interface and an error if any.
Types ¶
type Balancer ¶
type Balancer struct {
// contains filtered or unexported fields
}
Balancer is a wrapper around the balancer hash implementation that
func (*Balancer) Check ¶
func (c *Balancer) Check(ctx context.Context, request *base.PermissionCheckRequest) (*base.PermissionCheckResponse, error)
Check performs a permission check using the schema reader to obtain entity definitions, then distributes the request based on a generated key.
type OIDCTokenResponse ¶ added in v0.6.0
type OIDCTokenResponse struct {
AccessToken string `json:"access_token"`
}
OIDCTokenResponse represents the response from the OIDC token endpoint
Click to show internal directories.
Click to hide internal directories.