package
0.0.0-20190109151737-6637ac4559f7
Repository: https://github.com/xtracdev/xavi.git
Documentation: pkg.go.dev

# Functions

IsKnownHealthCheck returns true for the health check types supported by the toolkit.
IsKnownLoadBalancerPolicy returns true if the load balancer policy has been registered,false otherwise.
KnownHealthChecks returns the names of the health checks supported bt the toolkit.
MakeHealthCheck returns a health check function based on the server configuration and load balancer endpoint.
NewLoadBalancer instantiates a load balancer based on the named backend configuration.
ObtainFactoryForLoadBalancer returns the load balancer associated with the given policy.
RegisteredLoadBalancers returns a string listing all registered load balanacers.
RegisterLoadBalancer registers a load balancer factory with a given load balancerpolicy name.

# Constants

# Variables

No description provided by the author

# Structs

No description provided by the author
LoadBalancerEndpoint contains the information about an endpoint needed by the load balancerfor handing connections to a consumer.
PreferLocalLoadBalancer is a load balancer that looks to route traffic locally before sendingtraffic remote.
PreferLocalLoadBalancerFactory is used to instantiate PreferLocalLoadBalancer instances.
RoundRobinLoadBalancer maintains the information needed to hand out connectionsone after another in order.
RoundRobinLoadBalancerFactory is the method receiver for the round robin load balancer factory method.

# Interfaces

LoadBalancer has methods for handing out connection addressed and markingendpoints up or down.
LoadBalancerFactory defines an interface for instantiating load balancers.