proxy

package module
v0.0.0-...-7adc14d Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

func NewProxy

func NewProxy(t *testing.T, backend *net.TCPAddr) *Proxy

func (*Proxy) Addr

func (p *Proxy) Addr() *net.TCPAddr

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) CloseAllConns

func (p *Proxy) CloseAllConns()

func (*Proxy) HTTP

func (p *Proxy) HTTP() string

func (*Proxy) HTTPS

func (p *Proxy) HTTPS() string

func (*Proxy) SetBackend

func (p *Proxy) SetBackend(backend *net.TCPAddr)

func (*Proxy) SetRefuse

func (p *Proxy) SetRefuse(refuse bool)

Jump to

Keyboard shortcuts

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