Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
type LoadBalancer interface {
Select(uri, method string, endpoints map[string]endpoint.Endpoint, tagMap map[string][]string) (endpoint.Endpoint, string, error)
}
LoadBalancer defines how to select endpoint from a list of endpoints with tag labels
func NewRandomLoadBalancer ¶
func NewRandomLoadBalancer() LoadBalancer
NewRandomLoadBalancer creates an weighted random LB
Click to show internal directories.
Click to hide internal directories.