proxy

package
v0.0.0-...-0514228 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() api.Proxy

Types

type ProxyV1Alpha1

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

func (*ProxyV1Alpha1) DeleteRoute

func (p *ProxyV1Alpha1) DeleteRoute(ctx context.Context, name string) (v1alpha1.Route, error)

func (*ProxyV1Alpha1) ErrorHandler

func (p *ProxyV1Alpha1) ErrorHandler(w http.ResponseWriter, r *http.Request, err error)

func (*ProxyV1Alpha1) GetRoute

func (p *ProxyV1Alpha1) GetRoute(ctx context.Context, name string) (v1alpha1.Route, error)

func (*ProxyV1Alpha1) ModifyResponse

func (p *ProxyV1Alpha1) ModifyResponse(r *http.Response) error

func (*ProxyV1Alpha1) RegisterRoute

func (p *ProxyV1Alpha1) RegisterRoute(ctx context.Context, route v1alpha1.Route) (v1alpha1.Route, error)

func (*ProxyV1Alpha1) RewriteV1Alpha1

func (p *ProxyV1Alpha1) RewriteV1Alpha1(r *httputil.ProxyRequest)

func (*ProxyV1Alpha1) ServeHTTP

func (p *ProxyV1Alpha1) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*ProxyV1Alpha1) UpdateRoute

func (p *ProxyV1Alpha1) UpdateRoute(ctx context.Context, route v1alpha1.Route) (v1alpha1.Route, error)

Jump to

Keyboard shortcuts

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