validationproxy

package
v0.0.0-...-6cc5b44 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CertificateInfoHeader = "X-Forwarded-Client-Cert"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(proxyHandler http.Handler) http.Handler

func WithCEProxyTransport

func WithCEProxyTransport(t http.RoundTripper) func(*proxyHandler)

Types

type Cache

type Cache interface {
	Get(k string) (interface{}, bool)
	Set(k string, x interface{}, d time.Duration)
}

type ProxyHandler

type ProxyHandler interface {
	ProxyAppConnectorRequests(w http.ResponseWriter, r *http.Request)
}

func NewProxyHandler

func NewProxyHandler(
	eventingPublisherHost string,
	eventingDestinationPath string,
	cache Cache,
	log *logger.Logger,
	ops ...option) ProxyHandler

Jump to

Keyboard shortcuts

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