Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
type RoundRobin ¶
type RoundRobin struct { // {"/abc": Ring["svc://b1", "svc://b2"], "/xyz": Ring[svc://"z1"]} ServiceRings map[string]*ring.Ring }
func (*RoundRobin) GetBackend ¶
func (lb *RoundRobin) GetBackend(svc string) string
func (*RoundRobin) Load ¶
func (lb *RoundRobin) Load(Services map[string][]string)
func (*RoundRobin) LoadWithSeparator ¶
func (lb *RoundRobin) LoadWithSeparator(Services map[string]string, separator string)
Click to show internal directories.
Click to hide internal directories.