Help us shape the future of Go! Take the 2026 Go Developer Survey

apiproxy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package apiproxy passes requests on to the meshStack API. It stands apart from internal/tfstate because httputil.ReverseProxy takes a transport rather than a client, and forbidigo keeps the transport to internal/http and this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client http.AuthorizedClient, endpoint *url.URL, onError func(gohttp.ResponseWriter, *gohttp.Request, error)) gohttp.Handler

New replaces the Authorization a request came with by that of client, and passes a request without one on as it came. The User-Agent names the command first, as it built the request, and then the front end of client, through which it went.

Types

This section is empty.

Jump to

Keyboard shortcuts

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