proxy

package
v0.0.0-...-f3f4c76 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package proxy establishes a reverse proxy with sidecar backend

Index

Constants

This section is empty.

Variables

View Source
var (
	// Port is the proxy server port
	Port = ""
	// Backend is the fully qualified  backend url ip:port
	Backend = ""
)

Functions

This section is empty.

Types

type Proxy

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

Proxy struct containing information about single host proxy

func NewReverseProxy

func NewReverseProxy() (*Proxy, error)

NewReverseProxy initialize backend with single host proxy server

func (*Proxy) ServeHTTP

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

ServeHTTPProxy HTTP proxy

Jump to

Keyboard shortcuts

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