routing

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

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

SortLoad sorts Backends by load

Types

type BackendsByLoad

type BackendsByLoad []*cluster.Backend

BackendsByLoad wraps a backends collection for sorting

func (BackendsByLoad) Len

func (b BackendsByLoad) Len() int

Len returns the length of the collection

func (BackendsByLoad) Less

func (b BackendsByLoad) Less(i, j int) bool

Less compares two backends

func (BackendsByLoad) Swap

func (b BackendsByLoad) Swap(i, j int)

Swap swaps two elements in the collection

Jump to

Keyboard shortcuts

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