tcp_to_ws

package
v0.0.0-...-1c4d217 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Default TCP dialer
	DefaultTcpDialer = &fasthttp.TCPDialer{Concurrency: 1000}

	// Default web socket upgrader to upgrade the incoming connections
	DefaultWebSocketUpgrader = &websocket.FastHTTPUpgrader{
		ReadBufferSize:  1024,
		WriteBufferSize: 1024,
	}
)

Functions

This section is empty.

Types

type TcpToWSProxy

type TcpToWSProxy struct {
	PrepareRequest func(ctx *fiber.Ctx) error
	TcpDialer      *fasthttp.TCPDialer
	Upgrader       *websocket.FastHTTPUpgrader
}

func (*TcpToWSProxy) ProxyTcpToWS

func (p *TcpToWSProxy) ProxyTcpToWS(ctx *fiber.Ctx) (err error)

Jump to

Keyboard shortcuts

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