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 modules, 2 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.

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