wstunnel

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 10 Imported by: 0

README

wstunnel

go get marxus.github.io/go/wstunnel

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG = false
)

Functions

func ClientSide added in v0.0.3

func ClientSide(_ws, conn net.Conn)

func IOLoop added in v0.0.3

func IOLoop(side ws.State, _ws, conn net.Conn)

func ServerSide added in v0.0.3

func ServerSide(_ws, conn net.Conn)

func Tunnel

func Tunnel(conn net.Conn, urlstr string)

Types

type TunnelHandler added in v0.0.3

type TunnelHandler struct {
	http.Handler
	// contains filtered or unexported fields
}

func NewTunnelHandler added in v0.0.3

func NewTunnelHandler(open func() net.Conn) *TunnelHandler

func (*TunnelHandler) ServeHTTP added in v0.0.3

func (h *TunnelHandler) 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