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
Click to show internal directories.
Click to hide internal directories.