Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
type LoadBalancer struct { Algorithm algorithms.Algorithm Servers []*models.Server Port uint16 }
func New ¶
func New(opts ...LoadBalancerOption) *LoadBalancer
func (*LoadBalancer) Listen ¶
func (lb *LoadBalancer) Listen() error
type LoadBalancerOption ¶
type LoadBalancerOption func(*LoadBalancer)
func WithAlgorithm ¶
func WithAlgorithm(algorithm string) LoadBalancerOption
func WithPort ¶
func WithPort(port uint16) LoadBalancerOption
func WithServers ¶
func WithServers(servers []*models.Server) LoadBalancerOption
Click to show internal directories.
Click to hide internal directories.