reverseproxy

package
v2.0.0-beta2.0...-3469a79 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package reverseproxy provides the HTTP Reverse Proxy (no caching) Backend provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(name string, o *bo.Options, router http.Handler,
	_ cache.Cache, _ backends.Backends,
	_ types.Lookup) (backends.Backend, error)

NewClient returns a new Client Instance

Types

type Client

type Client struct {
	backends.Backend
}

Client Implements the Proxy Client Interface

func (*Client) DefaultHealthCheckConfig

func (c *Client) DefaultHealthCheckConfig() *ho.Options

DefaultHealthCheckConfig returns the default HealthCheck Config for this backend provider

func (*Client) DefaultPathConfigs

func (c *Client) DefaultPathConfigs(o *bo.Options) map[string]*po.Options

DefaultPathConfigs returns the default PathConfigs for the given Provider

func (*Client) ProxyHandler

func (c *Client) ProxyHandler(w http.ResponseWriter, r *http.Request)

ProxyHandler will proxy the inbound HTTP Request to the configured origin

func (*Client) RegisterHandlers

func (c *Client) RegisterHandlers(map[string]http.Handler)

Jump to

Keyboard shortcuts

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