rp

package
v0.0.0-...-975c5c9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseProxy

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

func New

func New() *ReverseProxy

func (*ReverseProxy) Add

func (rp *ReverseProxy) Add(target *url.URL, weight int)

func (*ReverseProxy) ChangeDNS

func (rp *ReverseProxy) ChangeDNS(domainServers ...string)

func (*ReverseProxy) ListenAndServe

func (rp *ReverseProxy) ListenAndServe(addr string) error

func (*ReverseProxy) Log

func (rp *ReverseProxy) Log(mode bool)

func (*ReverseProxy) ServeHTTP

func (rp *ReverseProxy) 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