proxy

package
v0.0.0-...-2af547a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL