revprox

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

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

Go to latest
Published: Feb 15, 2019 License: MIT Imports: 8 Imported by: 0

README

revprox

Lightweight reverse proxy 1 port

Installation

  • Go

    $ go get -u github.com/acoshift/revprox
    
  • Docker

    $ docker pull acoshift/revprox
    

Build from source

$ git clone https://github.com/acoshift/revprox.git
$ cd revprox
$ make

How to Run

$ revprox -addr=:8080 -target=http://localhost:9000

This command will start single host reverse proxy on address :8080.

Documentation

Index

Constants

View Source
const Version = "1.3.0"

Version value

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Origin        *url.URL
	Host          string
	UserAgent     string
	Path          string
	ExtraRequest  string
	ExtraResponse string
	DeleteRequest string
	AuthRealm     string
	AuthUsername  string
	AuthPassword  string
	StripURI      bool
	HideServer    bool
	NoCache       bool
	AccessLog     bool
	// contains filtered or unexported fields
}

Proxy is the revprox proxy

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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