balancer

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

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

Check performs a permission check using the schema reader to obtain entity definitions, then distributes the request based on a generated key.

Jump to

Keyboard shortcuts

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