tunnel

package
v0.0.0-...-7938e08 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NULL = "unknown"
	WST  = "websocket-tunnel"
	GRT  = "grpc-tunnel"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

type Tunnel interface {
	net.Conn
}

Tunnel is a bridge implementation for data transmission tunnel 不应该解决如何处理流量信息,仅仅是一个桥梁,用于信道传输。

func GRPCWrapConn

func GRPCWrapConn(addr net.Addr, cc grpc.Stream) Tunnel

func WsWrapConn

func WsWrapConn(conn *websocket.Conn) Tunnel

type Type

type Type string

func TranType

func TranType(t string) Type

Jump to

Keyboard shortcuts

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