pool

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolCoordinatorProxy

type PoolCoordinatorProxy struct {
	// contains filtered or unexported fields
}

PoolCoordinatorProxy is responsible for handling requests when remote servers are unhealthy

func NewPoolCoordinatorProxy

func NewPoolCoordinatorProxy(
	localCacheMgr cachemanager.CacheManager,
	transportMgrGetter func() transport.Interface,
	coordinatorServerURLGetter func() *url.URL,
	filterMgr *manager.Manager,
	isCoordinatorReady func() bool,
	stopCh <-chan struct{}) (*PoolCoordinatorProxy, error)

func (*PoolCoordinatorProxy) ServeHTTP

func (pp *PoolCoordinatorProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP of PoolCoordinatorProxy is able to handle read-only request, including watch, list, get. Other verbs that will write data to the cache are not supported currently.

Jump to

Keyboard shortcuts

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