proxy

package
v0.0.0-...-866b598 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	// Start starts a proxy server that listens on given addr.
	// Start blocks until the server is stopped or an error occurs.
	// Start always returns a non-nil error.
	Start(string) error
}

Proxy is an interface that provides a new reverse proxy.

func New

func New(routeStr string) (Proxy, error)

NewProxy takes routing rules and creates a reverse proxy

Jump to

Keyboard shortcuts

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