Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Leadership <-chan leader.Leadership Registry leader.Store }
Options capture additional configurations and objects that the mux will use
type ReverseProxy ¶
ReverseProxy is the mux reverse proxy that is able to multiplex calls to this to different backends, including socket-based plugins.
func NewReverseProxy ¶
func NewReverseProxy(plugins func() discovery.Plugins) *ReverseProxy
NewReverseProxy creates a mux reverse proxy
func (*ReverseProxy) ForwardTo ¶
func (rp *ReverseProxy) ForwardTo(u *url.URL)
ForwardTo sends the traffic to this url (host:port) instead of local plugins
func (*ReverseProxy) ServeHTTP ¶
func (rp *ReverseProxy) ServeHTTP(resp http.ResponseWriter, req *http.Request)
ServeHTTP implements HTTP handler
Click to show internal directories.
Click to hide internal directories.