proxy

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricProxyBytesReceive = promauto.NewCounter(prometheus.CounterOpts{
		Name: "cap_proxy_bytes_receive_total",
		Help: "Total number of bytes received by the proxy",
	})
	MetricProxyBytesTransmit = promauto.NewCounter(prometheus.CounterOpts{
		Name: "cap_proxy_bytes_transmit_total",
		Help: "Total number of bytes transmitted by the proxy",
	})
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ctx context.Context, target string, validators []plugins.ValidatingPlugin, mutators []plugins.MutatingPlugin) (*Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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