Documentation
¶
Index ¶
- func NewHandler(manager ProxyManager, defaultHandler, alternativeHandler http.Handler, ...) http.Handler
- func NewHandlerFromURLs(manager ProxyManager, defaultURL, alternativeURL *url.URL, options ...Option) http.Handler
- type CMPDiffer
- type DiffReporter
- type Differ
- type Option
- type PrintDiffReporter
- type ProxyManager
- type ProxyMode
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandlerFromURLs ¶
Types ¶
type DiffReporter ¶
type Option ¶
type Option func(*diffingOrchestrator)
func WithAlternativeContext ¶
func WithAlternativeTimeout ¶
func WithDiffReporter ¶
func WithDiffReporter(reporter DiffReporter) Option
func WithDiffer ¶
type PrintDiffReporter ¶
type PrintDiffReporter struct{}
func (PrintDiffReporter) ReportDiff ¶
func (p PrintDiffReporter) ReportDiff(req *http.Request, diff string)
func (PrintDiffReporter) ReportError ¶
func (p PrintDiffReporter) ReportError(req *http.Request, err error)
func (PrintDiffReporter) ReportMatch ¶
func (p PrintDiffReporter) ReportMatch(req *http.Request)
type ProxyManager ¶
Click to show internal directories.
Click to hide internal directories.