proxy

package
v0.0.0-...-1aaf8f9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 15 Imported by: 0

README

Proxy

Implements the HTTP reverse proxy which takes a request, clusters it and maps it to potentially alternate resources served via an upstream server.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTransport http.RoundTripper = &http.Transport{
	Proxy: http.ProxyFromEnvironment,
	Dial: (&net.Dialer{
		Timeout:   timeout,
		KeepAlive: timeout,
	}).Dial,
	TLSHandshakeTimeout: tlsTimeout,
}

Functions

This section is empty.

Types

type ProxyConfig

type ProxyConfig struct {
	DbConn       string
	UpstreamUrl  string
	Port         string
	BernardoHost string
	BernardoUrl  string
}

type RiverRock

type RiverRock struct {
	Config   *ProxyConfig
	Db       *sql.DB
	Upstream *url.URL
}

func NewProxy

func NewProxy(c *ProxyConfig) (*RiverRock, error)

func (*RiverRock) StartProxy

func (p *RiverRock) StartProxy() error

Jump to

Keyboard shortcuts

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