Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
func NewLoadBalancer ¶
func NewLoadBalancer(strategy Strategy, endpoints ...Endpoint) LoadBalancer
NewLoadBalancer returns the specified load balancer according to strategy, and initializes with endpoints
Random: The random load balancer forwards a client request randomly. RoundRobin: The round-robin load balancer forwards a client request to each endpoint in turn. WeightedRoundRobin: In the weighted round-robin algorithm, each endpoints is assigned a value that signifies, relative to the other endpoints in the pool, how that endpoint performs.
Click to show internal directories.
Click to hide internal directories.