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.
Click to show internal directories.
Click to hide internal directories.