Documentation ¶
Overview ¶
Package reverseproxycache provides the HTTP Reverse Proxy Cache Origin Type
Index ¶
- type Client
- func (c *Client) BaseURL() *url.URL
- func (c *Client) BuildUpstreamURL(r *http.Request) *url.URL
- func (c *Client) Cache() cache.Cache
- func (c *Client) Configuration() *config.OriginConfig
- func (c *Client) DefaultPathConfigs(oc *config.OriginConfig) map[string]*config.PathConfig
- func (c *Client) HTTPClient() *http.Client
- func (c *Client) Handlers() map[string]http.Handler
- func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request)
- func (c *Client) Name() string
- func (c *Client) ProxyCacheHandler(w http.ResponseWriter, r *http.Request)
- func (c *Client) ProxyHandler(w http.ResponseWriter, r *http.Request)
- func (c *Client) SetCache(cc cache.Cache)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Implements the Proxy Client Interface
func (*Client) BaseURL ¶
BaseURL returns a URL in the form of scheme://host/path based on the proxy configuration
func (*Client) BuildUpstreamURL ¶
BuildUpstreamURL will merge the downstream request with the BaseURL to construct the full upstream URL
func (*Client) Configuration ¶
func (c *Client) Configuration() *config.OriginConfig
Configuration returns the upstream Configuration for this Client
func (*Client) DefaultPathConfigs ¶
func (c *Client) DefaultPathConfigs(oc *config.OriginConfig) map[string]*config.PathConfig
DefaultPathConfigs returns the default PathConfigs for the given OriginType
func (*Client) HTTPClient ¶
HTTPClient returns the HTTP Transport the client is using
func (*Client) HealthHandler ¶
func (c *Client) HealthHandler(w http.ResponseWriter, r *http.Request)
HealthHandler checks the health of the Configured Upstream Origin
func (*Client) ProxyCacheHandler ¶
func (c *Client) ProxyCacheHandler(w http.ResponseWriter, r *http.Request)
ProxyCacheHandler routes an HTTP Request through the Object Proxy Cache
func (*Client) ProxyHandler ¶
func (c *Client) ProxyHandler(w http.ResponseWriter, r *http.Request)
ProxyHandler will proxy the inbound HTTP Request to the configured origin