httpproxy

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string

Mode definition

const (
	// ModePassthrough mode
	ModePassthrough Mode = "passthru"
)

type Proxy

type Proxy map[string]*store

Proxy definition

func New

func New(cfg ProxyConfig) *Proxy

NewProxy allocates a new http proxy from its configuration

func (*Proxy) RegisterRoutes

func (proxy *Proxy) RegisterRoutes(mux *http.ServeMux, prefix string, skipLogs bool)

RegisterRoutes for the proxy store/retrieve

type ProxyConfig

type ProxyConfig map[string]storeConfig

ProxyConfig definition

Jump to

Keyboard shortcuts

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