proxy

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig added in v0.3.0

type AuthConfig struct {
	User            string
	Password        string
	KeyFile         string
	ServerAddr      string
	InteractiveAuth bool
}

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)

func (*SSHClient) Close

func (s *SSHClient) Close() error

Close 关闭所有连接(逆序关闭跳板机)

Jump to

Keyboard shortcuts

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