reverseproxy

package
v0.0.0-...-c00e064 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "0.0.1"
	Name    = "proxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Kite *kite.Kite

	TLSConfig *tls.Config

	// Proxy properties used to give urls and bind the listener
	Scheme     string
	PublicHost string // If given it must match the domain in certificate.
	PublicPort int    // Uses for registering and defining the public port.
	// contains filtered or unexported fields
}

func New

func New(conf *config.Config) *Proxy

func (*Proxy) CloseNotify

func (p *Proxy) CloseNotify() chan bool

func (*Proxy) ListenAndServe

func (p *Proxy) ListenAndServe() error

ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections.

func (*Proxy) ListenAndServeTLS

func (p *Proxy) ListenAndServeTLS(certFile, keyFile string) error

func (*Proxy) ReadyNotify

func (p *Proxy) ReadyNotify() chan bool

func (*Proxy) Run

func (p *Proxy) Run()

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP implements the http.Handler interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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