Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiredTags ¶
func RequiredTags(next cluster.RouterHandler) cluster.RouterHandler
RequiredTags filters backends that match required tags defined in the frontend settings by the variables
required_tags = ["sip", "foo"]
func SortLoad ¶
func SortLoad(next cluster.RouterHandler) cluster.RouterHandler
SortLoad sorts Backends by load
Types ¶
type BackendsByLoad ¶
BackendsByLoad wraps a backends collection for sorting
func (BackendsByLoad) Len ¶
func (b BackendsByLoad) Len() int
Len returns the length of the collection
func (BackendsByLoad) Swap ¶
func (b BackendsByLoad) Swap(i, j int)
Swap swaps two elements in the collection
Click to show internal directories.
Click to hide internal directories.