balancer

package
v3.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() ibalancer.Balancer

func PreferLocalDC

func PreferLocalDC(balancer ibalancer.Balancer) ibalancer.Balancer

PreferLocalDC creates balancer which use endpoints only in location such as initial endpoint location Balancer "balancer" defines balancing algorithm between endpoints selected with filter by location

func PreferLocalDCWithFallBack

func PreferLocalDCWithFallBack(balancer ibalancer.Balancer) ibalancer.Balancer

PreferLocalDCWithFallBack creates balancer which use endpoints only in location such as initial endpoint location Balancer "balancer" defines balancing algorithm between endpoints selected with filter by location If filter returned zero endpoints from all discovery endpoints list - used all endpoint instead

func PreferLocations

func PreferLocations(balancer ibalancer.Balancer, locations ...string) ibalancer.Balancer

PreferLocations creates balancer which use endpoints only in selected locations (such as "MAN", "VLA", etc.) Balancer "balancer" defines balancing algorithm between endpoints selected with filter by location

func PreferLocationsWithFallback

func PreferLocationsWithFallback(balancer ibalancer.Balancer, locations ...string) ibalancer.Balancer

PreferLocationsWithFallback creates balancer which use endpoints only in selected locations Balancer "balancer" defines balancing algorithm between endpoints selected with filter by location If filter returned zero endpoints from all discovery endpoints list - used all endpoint instead

func RandomChoice

func RandomChoice() ibalancer.Balancer

func RoundRobin

func RoundRobin() ibalancer.Balancer

func SingleConn

func SingleConn() ibalancer.Balancer

Types

This section is empty.

Jump to

Keyboard shortcuts

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