gollb

package
v0.0.0-...-1bfd785 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer interface {
	Load(Service map[string][]string)
	LoadWithSeparator(map[string]string, string)
	GetBackend(string) string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL