gproxy

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 10 Imported by: 2

README

gproxy 包

简介

gproxy 包提供了代理相关的工具,支持 HTTP、HTTPS、SOCKS5 代理。

功能特性

  • HTTP 代理:支持 HTTP/HTTPS 代理
  • SOCKS5 代理:支持 SOCKS5 代理
  • 代理跳板:多级代理支持

安装

go get github.com/snail007/gmc/util/proxy

相关链接

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jumper

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

func NewJumper

func NewJumper(proxyURL string, timeout time.Duration) (j *Jumper, err error)

func (*Jumper) Dial

func (j *Jumper) Dial(address string) (net.Conn, error)

func (*Jumper) DialTimeout

func (j *Jumper) DialTimeout(address string, timeout time.Duration) (net.Conn, error)

func (*Jumper) MarshalJSON

func (j *Jumper) MarshalJSON() ([]byte, error)

func (*Jumper) MarshalMap

func (j *Jumper) MarshalMap() map[string]interface{}

Jump to

Keyboard shortcuts

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