common

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PortToClient = make(map[string]Client)
View Source
var PortToServer = make(map[string]Server)

Functions

This section is empty.

Types

type Client

type Client interface {
	ClientImpl
	HasListenerConfig
	Start()
	Addr() string
	GetClientImpl() ClientImpl
	SetClientImpl(impl ClientImpl)
	GetServerWSPath() string
}

type ClientConn added in v0.1.26

type ClientConn interface {
	Close()
	TunnelTcp(tcp net.Conn)
	TunnelWs(wsConn *utils.WebsocketConn)
}

type ClientImpl

type ClientImpl interface {
	Target() string
	Proxy() string
	Handle(tcp net.Conn)
	Dial(edBuf []byte, inHeader http.Header) (ClientConn, error)
}

type HasListenerConfig added in v0.1.27

type HasListenerConfig interface {
	GetListenerConfig() any
	SetListenerConfig(cfg any)
}

type Server

type Server interface {
	HasListenerConfig
	Start()
	Addr() string
	CloneWithNewAddress(bindAddress string) Server
}

Jump to

Keyboard shortcuts

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