proxy

package
v0.0.0-...-9c896fd Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 10 Imported by: 0

README

proxy

Origin from proxy

supported proxy client:

  • socks5
  • http
  • https

Documentation

Overview

date : 2016-02-18 author: xjdrew

Index

Constants

This section is empty.

Variables

View Source
var Direct = direct{}

Direct is a direct proxy: one that makes network connections directly.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	// Dial connects to the given address via the proxy.
	Dial(network, addr string) (c net.Conn, err error)
}

A Dialer is a means to establish a connection.

type Proxy

type Proxy struct {
	Url *url.URL
	// contains filtered or unexported fields
}

func FromUrl

func FromUrl(rawurl string) (*Proxy, error)

func (*Proxy) Dial

func (p *Proxy) Dial(network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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