proxy

package
v0.0.0-...-f011ba4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClient

func BuildClient(c config.Config)

func Delegate

func Delegate(res http.ResponseWriter, req *http.Request)

func DoProxy

func DoProxy(w http.ResponseWriter, r *http.Request)

DoProxy /** forward request */

func ForwardProxy

func ForwardProxy(w http.ResponseWriter, r *http.Request)

func ReverseProxy

func ReverseProxy(w http.ResponseWriter, r *http.Request)

Types

type Func

type Func func(http.ResponseWriter, *http.Request)

func GetProxy

func GetProxy(t Type) Func

func (Func) Handle

func (f Func) Handle(w http.ResponseWriter, r *http.Request)

type Handler

type Handler interface {
	Handle(http.ResponseWriter, *http.Request)
}

type Type

type Type int
const (
	REVERSE Type = iota
	FORWARD
)

Jump to

Keyboard shortcuts

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