proxy

package
v0.0.0-...-3a0bab5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeSocket5 = "socket5"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HttpAddr string `json:"http_addr"`
	HttpPort int32  `json:"http_port"`
}

type Dep

type Dep struct {
	Config   Config
	Transfer transfer.Transfer
}

type HttpProxy

type HttpProxy struct {
	transfer.Transfer

	HttpAddr string
	HttpPort int32
	// contains filtered or unexported fields
}

func (*HttpProxy) ServeHTTP

func (h *HttpProxy) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*HttpProxy) Start

func (h *HttpProxy) Start(stopCh chan struct{}) error

type Proxy

type Proxy interface {
	Start(stopCh chan struct{}) error
}

func NewHttpProxy

func NewHttpProxy(dep Dep) Proxy

type Socket5

type Socket5 struct{}

func (Socket5) Start

func (s Socket5) Start(stopCh chan struct{}) error

Jump to

Keyboard shortcuts

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