cliv5

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 18 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 BuffConfigInit

func BuffConfigInit()

buff 配置设置

func DefaultListenAndServeWebsocket

func DefaultListenAndServeWebsocket() error

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 Run

func Run()

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