cli

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BufferSize is the size of the intermediate buffer for network packets
	BufferSize = 1024
)
View Source
const Stunnel = 2
View Source
const WSTunnel = 1

Variables

View Source
var Channel = make(chan string)

Functions

func InitLogger

func InitLogger(development bool, logFilePath string)

InitLogger initializes the logger.

Types

type EchoServer

type EchoServer struct {
	// contains filtered or unexported fields
}

EchoServer simple web socket server for testing.

type Runner

type Runner interface {
	Run() error
}

Runner defines a basic interface with only a Run() function

func NewBidirConnection

func NewBidirConnection(tcpConn net.Conn, wsConn *websocket.Conn, tcpReadTimeout time.Duration, mtu int) Runner

func NewHTTPClient

func NewHTTPClient(listenTCP, remoteServer string, tunnelType int, mtu int, callback func(fd int), channel chan string, extraPadding bool, tlsServerName string) Runner

func NewStunnelBiDirection

func NewStunnelBiDirection(localConn net.Conn, remoteConn *tls.UConn, mtu int) Runner

type StunnelBiDirection

type StunnelBiDirection struct {
	// contains filtered or unexported fields
}

StunnelBiDirection creates an object to transfer data between the TCP clients and remote server in bidirectional way

func (*StunnelBiDirection) Run

func (s *StunnelBiDirection) Run() error

type WebSocketBiDirection

type WebSocketBiDirection struct {
	// contains filtered or unexported fields
}

WebSocketBiDirection Creates an object to transfer data between the TCP clients and remote server in bidirectional way

func (*WebSocketBiDirection) Run

func (b *WebSocketBiDirection) Run() error

Jump to

Keyboard shortcuts

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