handler

package
v0.0.0-...-0570fc1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BridgeResource

func BridgeResource(rw http.ResponseWriter, r *http.Request, path string)

func Handle

func Handle(settings *HandleSettings) error

Types

type BridgeLink struct {
	RemoteAddr string
	// contains filtered or unexported fields
}

type HTTPHandle

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

func NewHttpHandle

func NewHttpHandle() *HTTPHandle

func (HTTPHandle) Dial

func (hs HTTPHandle) Dial(remoteaddr string) (io.ReadWriteCloser, error)

func (HTTPHandle) Dial2

func (hs HTTPHandle) Dial2(remoteaddr, protocol string) (io.ReadWriteCloser, error)

func (HTTPHandle) ServeBridge

func (hs HTTPHandle) ServeBridge(rw http.ResponseWriter, r *http.Request)

func (HTTPHandle) ServeClient

func (hs HTTPHandle) ServeClient(rw http.ResponseWriter, r *http.Request)

func (HTTPHandle) ServeHTTP

func (hs HTTPHandle) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type HandleSettings

type HandleSettings struct {
	ListenAddr string
	RemoteAddr string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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