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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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