Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(t string) (types.UpstreamBalancingAlgorithm, error)
New creates and returns a new balancing algorithm based on its ID. It uses the `allAlgorithms` map which is the union of all weighted and unweighed algorithm implementations. Their maps are generated by running `go generate` in the weighted and unweighted subfolders.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package unweighted contains all unweighted upstream balancing algorithm implementations.
|
Package unweighted contains all unweighted upstream balancing algorithm implementations. |
Package weighted contains all weighted upstream balancing algorithm implementations.
|
Package weighted contains all weighted upstream balancing algorithm implementations. |
Click to show internal directories.
Click to hide internal directories.