loadbalancer

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const RandomPort = 0

Variables

View Source
var (
	SupervisorServiceName = version.Program + "-agent-load-balancer"
	APIServerServiceName  = version.Program + "-api-server-agent-load-balancer"
	ETCDServerServiceName = version.Program + "-etcd-server-load-balancer"
)

Functions

func ResetLoadBalancer added in v1.21.9

func ResetLoadBalancer(dataDir, serviceName string) error

ResetLoadBalancer will delete the local state file for the load balacner on disk

Types

type LoadBalancer

type LoadBalancer struct {
	ServerURL       string
	ServerAddresses []string

	Listener net.Listener
	// contains filtered or unexported fields
}

func New added in v1.21.9

func New(ctx context.Context, dataDir, serviceName, serverURL string, lbServerPort int) (_lb *LoadBalancer, _err error)

func (*LoadBalancer) LoadBalancerServerURL

func (lb *LoadBalancer) LoadBalancerServerURL() string

func (*LoadBalancer) Update

func (lb *LoadBalancer) Update(serverAddresses []string)

Jump to

Keyboard shortcuts

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