package balancers
import "github.com/ydb-platform/ydb-go-sdk/v3/balancers"
Index ¶
- func Default() balancer.Balancer
- func PreferLocalDC(balancer balancer.Balancer) balancer.Balancer
- func PreferLocalDCWithFallBack(b balancer.Balancer) balancer.Balancer
- func PreferLocations(balancer balancer.Balancer, locations ...string) balancer.Balancer
- func PreferLocationsWithFallback(b balancer.Balancer, locations ...string) balancer.Balancer
- func RandomChoice() balancer.Balancer
- func RoundRobin() balancer.Balancer
- func SingleConn() balancer.Balancer
Functions ¶
func Default ¶
func PreferLocalDC ¶
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 ¶
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 ¶
PreferLocations creates balancer which use endpoints only in selected locations (such as "ABC", "DEF", etc.) Balancer "balancer" defines balancing algorithm between endpoints selected with filter by location
func PreferLocationsWithFallback ¶
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 RoundRobin ¶
func SingleConn ¶
Source Files ¶
- Version
- v3.11.8-rc7
- Published
- Feb 26, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 14 minutes ago –
Tools for package owners.