proxy

package
v0.0.0-...-938cbfc Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyHandler

func NewProxyHandler(toUrl url.URL) *httputil.ReverseProxy

Types

type Proxy

type Proxy interface {
	ListenAndServe(addr string, handler http.HandlerFunc) error
}

type ServerProxy

type ServerProxy struct {
}

func (*ServerProxy) ListenAndServe

func (s *ServerProxy) ListenAndServe(addr string, handler http.HandlerFunc) error

type TestProxy

type TestProxy struct {
	Addr    string
	Handler http.HandlerFunc
}

func (*TestProxy) ListenAndServe

func (t *TestProxy) ListenAndServe(addr string, handler http.HandlerFunc) error

Jump to

Keyboard shortcuts

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