gate

package module
v0.0.0-...-a6c6048 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: MIT Imports: 5 Imported by: 0

README

gate

golang package gate is a HTTP proxy.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

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

func NewGate

func NewGate() *Gate

func (*Gate) Clear

func (g *Gate) Clear()

func (*Gate) Delete

func (g *Gate) Delete(pattern string)

func (*Gate) Map

func (g *Gate) Map(pattern string, h *Host)

func (*Gate) ServeHTTP

func (g *Gate) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Host

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

func NewHost

func NewHost() *Host

func (*Host) Clear

func (h *Host) Clear()

func (*Host) Delete

func (h *Host) Delete(pattern string)

func (*Host) Map

func (h *Host) Map(pattern, destURL string) error

func (*Host) ServeHTTP

func (h *Host) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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