proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPOverSSH

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

HTTPOverSSH 表示基于SSH的HTTP代理

func NewHTTPOverSSH

func NewHTTPOverSSH(cfg *config.Config, log *logger.Logger) (*HTTPOverSSH, error)

NewHTTPOverSSH 创建HTTP代理

func (*HTTPOverSSH) Close

func (p *HTTPOverSSH) Close() error

Close 关闭代理服务

func (*HTTPOverSSH) Start

func (p *HTTPOverSSH) Start() error

Start 启动HTTP代理服务

type SSHClient

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

SSHClient 管理SSH连接

func NewSSHClient

func NewSSHClient(cfg *config.Config, log *logger.Logger) (*SSHClient, error)

NewSSHClient 创建SSH客户端

func (*SSHClient) Close

func (s *SSHClient) Close() error

Close 关闭SSH连接

func (*SSHClient) Dial

func (s *SSHClient) Dial(network, addr string) (net.Conn, error)

Dial 通过SSH隧道连接到目标服务器

Jump to

Keyboard shortcuts

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