Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TenantIDRoundTripper ¶
type TenantIDRoundTripper struct { // TenantName is the name of the tenant to be added to the request header. TenantName string // Next is the next RoundTripper in the chain. Next http.RoundTripper }
TenantIDRoundTripper is a custom implementation of http.RoundTripper. It adds a tenant name to the request header before passing it to the next RoundTripper.
func (*TenantIDRoundTripper) RoundTrip ¶
RoundTrip adds the tenant name to the request header and then passes the request to the next RoundTripper. If TenantName is not set, it simply passes the request to the next RoundTripper. It returns the response from the next RoundTripper and any error encountered.
Click to show internal directories.
Click to hide internal directories.