proxy

package
v0.0.0-...-767ff25 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

Proxy - represents a Proxy

func NewProxy

func NewProxy(proxyConfig config.ProxyConfig) (*Proxy, error)

NewProxy - Given a proxy config, returns a proxy

func (*Proxy) GetRouter

func (revProxy *Proxy) GetRouter() http.Handler

GetRouter - setups the http handlers and returns a http handler

func (*Proxy) ServeFSPerformance

func (revProxy *Proxy) ServeFSPerformance(res http.ResponseWriter, req *http.Request)

ServeFSPerformance - handler function for the performance endpoint

func (*Proxy) ServeIterator

func (revProxy *Proxy) ServeIterator(res http.ResponseWriter, req *http.Request)

ServeIterator - handler function for volume iterator endpoint

func (*Proxy) ServePerformance

func (revProxy *Proxy) ServePerformance(res http.ResponseWriter, req *http.Request)

ServePerformance - handler function for the performance endpoint

func (*Proxy) ServeReplicationCapabilities

func (revProxy *Proxy) ServeReplicationCapabilities(res http.ResponseWriter, req *http.Request)

ServeReplicationCapabilities - handler function for replicationcapabilities endpoint

func (*Proxy) ServeReverseProxy

func (revProxy *Proxy) ServeReverseProxy(res http.ResponseWriter, req *http.Request)

ServeReverseProxy - serves a reverse proxy request

func (*Proxy) ServeSymmetrix

func (revProxy *Proxy) ServeSymmetrix(res http.ResponseWriter, req *http.Request)

ServeSymmetrix - handler function for symmetrix list endpoint

func (*Proxy) ServeVersions

func (revProxy *Proxy) ServeVersions(res http.ResponseWriter, req *http.Request)

ServeVersions - handler function for the version endpoint

func (*Proxy) ServeVolume

func (revProxy *Proxy) ServeVolume(res http.ResponseWriter, req *http.Request)

ServeVolume - handler function for volume endpoint

func (*Proxy) ServeVolumePerformance

func (revProxy *Proxy) ServeVolumePerformance(res http.ResponseWriter, req *http.Request)

ServeVolumePerformance - handler function for the performance endpoint

func (*Proxy) UpdateConfig

func (revProxy *Proxy) UpdateConfig(proxyConfig config.ProxyConfig) error

UpdateConfig - Given a new proxy config, updates the Proxy

Jump to

Keyboard shortcuts

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