proxy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

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

func NewHTTP

func NewHTTP(ssh SSHClient) *HTTP

func (*HTTP) Start

func (h *HTTP) Start(localPort int) error

type SOCKS5

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

func NewSOCKS5

func NewSOCKS5(ssh SSHClient) *SOCKS5

func (*SOCKS5) Start

func (s *SOCKS5) Start(localPort int) error

type SSHClient

type SSHClient interface {
	Dial(network, address string) (net.Conn, error)
}

type Server

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

func NewServer

func NewServer(ssh SSHClient) *Server

func (*Server) HandleClientWithTimeout

func (s *Server) HandleClientWithTimeout(clientConn net.Conn, clientType string, timeout time.Duration, handler func())

func (*Server) OpenSSHChannel

func (s *Server) OpenSSHChannel(clientConn net.Conn, host string, port int)

func (*Server) StartProxy

func (s *Server) StartProxy(proxyType string, localPort int, handler func(net.Conn)) error

Jump to

Keyboard shortcuts

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