reverseproxycache

package
v2.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package reverseproxycache provides the HTTP Reverse Proxy Cache 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.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(_ *bo.Options) po.List

DefaultPathConfigs returns the default PathConfigs for the given Provider

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

func (*Client) RegisterHandlers

func (c *Client) RegisterHandlers(handlers.Lookup)

Jump to

Keyboard shortcuts

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