loadbalancer

package
v1.0.0-rc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadBalancerStrategy = map[model.LbPolicyType]LoadBalancer{}

LoadBalancerStrategy load balancer strategy mode

Functions

func RegisterConsistentHashInit

func RegisterConsistentHashInit(name model.LbPolicyType, function model.ConsistentHashInitFunc)

func RegisterLoadBalancer

func RegisterLoadBalancer(name model.LbPolicyType, balancer LoadBalancer)

Types

type LoadBalancer

type LoadBalancer interface {
	Handler(c *model.ClusterConfig, policy model.LbPolicy) *model.Endpoint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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