proxyall

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package proxyall provides a recipe that prepares an HTTP mock server to send the requests no other mock matches to a real service: mock the endpoints a test cares about, and let everything else reach the service as it is.

err := m.Prep(ctx, proxyall.New(mockhttp.From("https://api.example.com").Timeout(5*time.Second)))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a recipe that proxies the requests no other mock matches with reply, through mockhttp.ProxyAll: every option of the reply applies, such as its timeout or its transport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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