proxy

package
v0.0.0-...-bab7392 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerHost

type PeerHost struct {
	PeerId string
	Port   int
}

type WebProxy

type WebProxy struct {
	Mesh *mesh.Mesh
	// contains filtered or unexported fields
}

func New

func New(port int) *WebProxy

func NewUsingMesh

func NewUsingMesh(port int, m *mesh.Mesh) *WebProxy

func (*WebProxy) HandleHttp3

func (wp *WebProxy) HandleHttp3(r *http.Request, w http.ResponseWriter)

func (*WebProxy) HandleWS

func (wp *WebProxy) HandleWS(r *http.Request, w http.ResponseWriter)

func (*WebProxy) Run

func (wp *WebProxy) Run() error

func (*WebProxy) ServeHTTP

func (wp *WebProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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