proxy

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 9 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 New

func New(userSettings *settings.Provider, logger *log.Logger) (*Proxy, error)

func (*Proxy) Addr

func (p *Proxy) Addr() string

func (*Proxy) Close

func (p *Proxy) Close() error

func (*Proxy) ID

func (p *Proxy) ID() string

func (*Proxy) OnRequest

func (p *Proxy) OnRequest(f ProxyRequestFunc) *Proxy

func (*Proxy) OnResponse

func (p *Proxy) OnResponse(f ProxyResponseFunc) *Proxy

func (*Proxy) Run

func (p *Proxy) Run() error

type ProxyRequestFunc

type ProxyRequestFunc func(*http.Request, int64) (*http.Request, *http.Response)

type ProxyResponseFunc

type ProxyResponseFunc func(*http.Response, int64) *http.Response

Jump to

Keyboard shortcuts

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