proxy

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 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 MiddlewareOption added in v0.0.4

type MiddlewareOption = func(*ProxyMiddleware)

func WithHTTPClient

func WithHTTPClient(http *http.Client) MiddlewareOption

func WithURLReplacerFactory

func WithURLReplacerFactory(replacerFactory URLReplacerFactory) MiddlewareOption

type ProxyMiddleware

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

nolint: revive

func NewProxyMiddleware

func NewProxyMiddleware(options ...MiddlewareOption) *ProxyMiddleware

func (*ProxyMiddleware) Wrap

type URLReplacerFactory

type URLReplacerFactory interface {
	Make(requestURL *url.URL) (*urlreplacer.Replacer, *urlreplacer.Replacer, error)
}

Jump to

Keyboard shortcuts

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