kite: github.com/koding/kite/reverseproxy Index | Files | Directories

package reverseproxy

import "github.com/koding/kite/reverseproxy"

Index

Package Files

reverseproxy.go

Constants

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

type Proxy Uses

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 Uses

func New(conf *config.Config) *Proxy

func (*Proxy) CloseNotify Uses

func (p *Proxy) CloseNotify() chan bool

func (*Proxy) ListenAndServe Uses

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 Uses

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

func (*Proxy) ReadyNotify Uses

func (p *Proxy) ReadyNotify() chan bool

func (*Proxy) Run Uses

func (p *Proxy) Run()

func (*Proxy) ServeHTTP Uses

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

ServeHTTP implements the http.Handler interface.

Directories

PathSynopsis
reverseproxy

Package reverseproxy imports 13 packages (graph) and is imported by 11 packages. Updated 2017-01-31. Refresh now. Tools for package owners.