Documentation ¶
Index ¶
- func New() api.Proxy
- type ProxyV1Alpha1
- func (p *ProxyV1Alpha1) DeleteRoute(ctx context.Context, name string) (v1alpha1.Route, error)
- func (p *ProxyV1Alpha1) ErrorHandler(w http.ResponseWriter, r *http.Request, err error)
- func (p *ProxyV1Alpha1) GetRoute(ctx context.Context, name string) (v1alpha1.Route, error)
- func (p *ProxyV1Alpha1) ModifyResponse(r *http.Response) error
- func (p *ProxyV1Alpha1) RegisterRoute(ctx context.Context, route v1alpha1.Route) (v1alpha1.Route, error)
- func (p *ProxyV1Alpha1) RewriteV1Alpha1(r *httputil.ProxyRequest)
- func (p *ProxyV1Alpha1) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (p *ProxyV1Alpha1) UpdateRoute(ctx context.Context, route v1alpha1.Route) (v1alpha1.Route, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProxyV1Alpha1 ¶
type ProxyV1Alpha1 struct {
// contains filtered or unexported fields
}
func (*ProxyV1Alpha1) DeleteRoute ¶
func (*ProxyV1Alpha1) ErrorHandler ¶
func (p *ProxyV1Alpha1) ErrorHandler(w http.ResponseWriter, r *http.Request, err error)
func (*ProxyV1Alpha1) ModifyResponse ¶
func (p *ProxyV1Alpha1) ModifyResponse(r *http.Response) error
func (*ProxyV1Alpha1) RegisterRoute ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.