Documentation ¶
Overview ¶
Package reverseproxycache provides the HTTP Reverse Proxy Cache Origin Type
Index ¶
- func NewClient(name string, oc *oo.Options, router http.Handler, cache cache.Cache) (origins.Client, error)
- type Client
- func (c *Client) Cache() cache.Cache
- func (c *Client) Configuration() *oo.Options
- func (c *Client) DefaultPathConfigs(oc *oo.Options) map[string]*po.Options
- 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) Router() http.Handler
- func (c *Client) SetCache(cc cache.Cache)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Implements the Proxy Client Interface
func (*Client) Configuration ¶
Configuration returns the upstream Configuration for this Client
func (*Client) DefaultPathConfigs ¶
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
Click to show internal directories.
Click to hide internal directories.