Documentation ¶
Index ¶
Constants ¶
View Source
const MinConnectBalanceName = "customize_min_connect"
View Source
const MinRespTimeBalanceName = "customize_min_resp_time"
View Source
const RandomWeightedRobinBalanceName = "customize_random_weighted_round_robin"
View Source
const RoundRobinBalanceName = "customize_round_robin"
View Source
const WeightedRobinBalanceName = "customize_weighted_round_robin"
Variables ¶
This section is empty.
Functions ¶
func RegisterMcBalance ¶
func RegisterMcBalance(healthCheck bool)
func RegisterMrtBalance ¶
func RegisterMrtBalance(healthCheck bool)
func RegisterRRBalance ¶
func RegisterRRBalance(healthCheck bool)
func RegisterRWRRBalance ¶
func RegisterRWRRBalance(healthCheck bool)
func RegisterWRRBalance ¶
func RegisterWRRBalance(healthCheck bool)
Types ¶
type Config ¶
type Config struct { // HealthCheck indicates whether health checking should be enabled for this specific balancer. HealthCheck bool // `attributes` is stripped from the keys of this map (the addresses) StripAttributes bool }
Config contains the config info about the base balancer builder.
Click to show internal directories.
Click to hide internal directories.