# Functions
EnableStickySession enable sticky session.
ErrorHandler is a functional argument that sets error handler of the server.
New created a new RoundRobin.
NewRebalancer creates a new Rebalancer.
NewStickySession creates a new StickySession.
NewStickySessionWithOptions creates a new StickySession whilst allowing for options to shape its affinity cookie such as "httpOnly" or "secure".
RebalancerBackoff sets a beck off duration.
RebalancerClock sets a clock.
RebalancerErrorHandler is a functional argument that sets error handler of the server.
RebalancerLogger defines the logger the rebalancer will use.
RebalancerMeter sets a Meter builder function.
RebalancerRequestRewriteListener is a functional argument that sets error handler of the server.
RebalancerStickySession sets a sticky session.
RoundRobinLogger defines the logger the round robin load balancer will use.
RoundRobinRequestRewriteListener is a functional argument that sets error handler of the server.
SetDefaultWeight sets the default server weight.
Weight is an optional functional argument that sets weight of the server.
# Constants
FSMGrowFactor Multiplier for the server weight.
FSMMaxWeight is the maximum weight that handler will set for the server.
# Structs
CookieOptions has all the options one would like to set on the affinity cookie.
DefaultObfuscator is a no-op that returns the raw/obfuscated strings as-is.
HexObfuscator is a roundrobin.Obfuscator that returns an hex-encoded version of the value.
Rebalancer increases weights on servers that perform better than others.
RoundRobin implements dynamic weighted round robin load balancer http handler.
StickySession is a mixin for load balancers that implements layer 7 (http cookie) session affinity.
# Interfaces
Meter measures server performance and returns it's relative value via rating.
Obfuscator is an interface you can pass to NewStickySessionWithObfuscator, to encode/encrypt/jumble/whatever your StickySession values.
# Type aliases
LBOption provides options for load balancer.
NewMeterFn type of functions to create new Meter.
RebalancerOption - functional option setter for rebalancer.
RequestRewriteListener function to rewrite request.
ServerOption provides various options for server, e.g.