Documentation ¶
Overview ¶
Package proxy contains a mechanism for proxying requests to a remote service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPlugin ¶
func LoadPlugin()
LoadPlugin being called forces the package to be loaded in order to ensure that the resource types are registered during the package's Init.
Types ¶
type PassthruFilter ¶
type PassthruFilter httputil.ReverseProxy
PassthruFilter provides a mechanism by which a net/http/httputil.ReverseProxy can be configured. This reverse proxy allows requests received by Pullcord to be sent to a remote service.
func NewPassthruFilter ¶
func NewPassthruFilter(u *url.URL) *PassthruFilter
NewPassthruFilter creates a PassthruFilter using a single host reverse proxy pointing at the given url.URL.
func (*PassthruFilter) ServeHTTP ¶
func (f *PassthruFilter) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*PassthruFilter) UnmarshalJSON ¶
func (f *PassthruFilter) UnmarshalJSON(input []byte) error
UnmarshalJSON implements encoding/json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.