remote

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer interface {
	ServeHTTP(rw http.ResponseWriter, req *http.Request)
}

LoadBalancer is an interface for proxying http request to remote server based on the load balance mode(round-robin or priority)

func NewLoadBalancer

func NewLoadBalancer(
	lbMode string,
	remoteServers []*url.URL,
	localCacheMgr cachemanager.CacheManager,
	transportMgr transport.Interface,
	coordinatorGetter func() yurtcoordinator.Coordinator,
	healthChecker healthchecker.MultipleBackendsHealthChecker,
	filterManager *manager.Manager,
	workingMode hubutil.WorkingMode,
	stopCh <-chan struct{}) (LoadBalancer, error)

NewLoadBalancer creates a loadbalancer for specified remote servers

Jump to

Keyboard shortcuts

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