balancer

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 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(
	checker invoke.Check,
	schemaReader storage.SchemaReader,
	dst *config.Distributed,
	srv *config.GRPC,
	authn *config.Authn,
) (invoke.Check, error)

NewCheckEngineWithBalancer struct with the provided cache.Cache instance.

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