deflect

package
v0.0.0-...-ca1c0fe Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2016 License: LGPL-2.1 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db addrDB) http.Handler

New creates a Deflector with a new hands DB

Types

type Deflector

type Deflector struct {
	// contains filtered or unexported fields
}

Deflector is a handler that proxies based on a provided addrDB

func (*Deflector) ServeHTTP

func (d *Deflector) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServerHTTP creates a reverse proxy based on the stored hands, and passes the request to the proxy

Jump to

Keyboard shortcuts

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