proxy

package
v0.0.0-...-b4ab54f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

Types

type HttpProxy

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

func NewHttpProxy

func NewHttpProxy(cfg *co.HttpProxy) *HttpProxy

func (*HttpProxy) CheckAuth

func (t *HttpProxy) CheckAuth(w http.ResponseWriter, r *http.Request) bool

func (*HttpProxy) GetConfig

func (t *HttpProxy) GetConfig(w http.ResponseWriter, r *http.Request)

func (*HttpProxy) GetPac

func (t *HttpProxy) GetPac(w http.ResponseWriter, r *http.Request)

func (*HttpProxy) GetStats

func (t *HttpProxy) GetStats(w http.ResponseWriter, r *http.Request)

func (*HttpProxy) ServeHTTP

func (t *HttpProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HttpProxy) Start

func (t *HttpProxy) Start()

type HttpRecord

type HttpRecord struct {
	Count    int
	LastAt   string
	CreateAt string
	Domain   string
}

func (*HttpRecord) Update

func (r *HttpRecord) Update()

type Proxy

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

func NewProxy

func NewProxy(cfg *config.Proxy) *Proxy

func (*Proxy) Initialize

func (p *Proxy) Initialize()

func (*Proxy) Start

func (p *Proxy) Start()

func (*Proxy) Stop

func (p *Proxy) Stop()

type SocksProxy

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

func NewSocksProxy

func NewSocksProxy(cfg *config.SocksProxy) *SocksProxy

func (*SocksProxy) Start

func (s *SocksProxy) Start()

type TcpProxy

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

func NewTcpProxy

func NewTcpProxy(cfg *config.TcpProxy) *TcpProxy

func (*TcpProxy) Start

func (t *TcpProxy) Start()

func (*TcpProxy) Stop

func (t *TcpProxy) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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