Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHTTPClient ¶
func WithURLReplacerFactory ¶
func WithURLReplacerFactory(replacerFactory URLReplacerFactory) proxyMiddlewareOption
Types ¶
type ProxyMiddleware ¶
type ProxyMiddleware struct {
// contains filtered or unexported fields
}
nolint: revive
func NewProxyMiddleware ¶
func NewProxyMiddleware(options ...proxyMiddlewareOption) *ProxyMiddleware
func (*ProxyMiddleware) Wrap ¶
func (pm *ProxyMiddleware) Wrap(next infrastructure.HandlerFunc) infrastructure.HandlerFunc
type URLReplacerFactory ¶
type URLReplacerFactory interface {
Make(requestURL *url.URL) (*urlreplacer.Replacer, error)
}
Click to show internal directories.
Click to hide internal directories.