cli

package
v0.0.0-...-3596c24 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWebsocketHandler

func AddWebsocketHandler(urlPattern string, uri string) error

转发websocket的数据到tcp处理中去

func ListenAndServeWebsocket

func ListenAndServeWebsocket(addr string) error

start a listener that proxies websocket <-> tcp

func ListenAndServeWebsocketSecure

func ListenAndServeWebsocketSecure(addr string, cert string, key string) error

starts an HTTPS listener

func Start

func Start()

func WebsocketTcpProxy

func WebsocketTcpProxy(ws *websocket.Conn, nettype string, host string) error

handler that proxies websocket <-> unix domain socket

Types

This section is empty.

Jump to

Keyboard shortcuts

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