package balancer
import "github.com/ydb-platform/ydb-go-sdk/v3/config/balancer"
Index ¶
- func Default() ibalancer.Balancer
- func PreferEndpoint(primary ibalancer.Balancer, endpoints ...string) ibalancer.Balancer
- func PreferEndpointRegEx(primary ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
- func PreferEndpointWithFallback(primary, fallback ibalancer.Balancer, endpoints ...string) ibalancer.Balancer
- func PreferEndpointWithFallbackRegEx(primary, fallback ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
- func PreferLocal(primary ibalancer.Balancer) ibalancer.Balancer
- func PreferLocalWithFallback(primary, fallback ibalancer.Balancer) ibalancer.Balancer
- func PreferLocations(primary ibalancer.Balancer, locations ...string) ibalancer.Balancer
- func PreferLocationsRegEx(primary ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
- func PreferLocationsWithFallback(primary, fallback ibalancer.Balancer, locations ...string) ibalancer.Balancer
- func PreferLocationsWithFallbackRegEx(primary, fallback ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
- func RandomChoice() ibalancer.Balancer
- func RoundRobin() ibalancer.Balancer
- func SingleConn() ibalancer.Balancer
Functions ¶
func Default ¶
func PreferEndpoint ¶
func PreferEndpointRegEx ¶
func PreferEndpointWithFallback ¶
func PreferEndpointWithFallback(primary, fallback ibalancer.Balancer, endpoints ...string) ibalancer.Balancer
func PreferEndpointWithFallbackRegEx ¶
func PreferEndpointWithFallbackRegEx(primary, fallback ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
func PreferLocal ¶
func PreferLocalWithFallback ¶
func PreferLocations ¶
func PreferLocationsRegEx ¶
func PreferLocationsWithFallback ¶
func PreferLocationsWithFallback(primary, fallback ibalancer.Balancer, locations ...string) ibalancer.Balancer
func PreferLocationsWithFallbackRegEx ¶
func PreferLocationsWithFallbackRegEx(primary, fallback ibalancer.Balancer, re regexp.Regexp) ibalancer.Balancer
func RandomChoice ¶
func RoundRobin ¶
func SingleConn ¶
Source Files ¶
- Version
- v3.6.2
- Published
- Jan 10, 2022
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 6 minutes ago –
Tools for package owners.