proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenToNewSock

func ListenToNewSock(newsock string, sigc chan os.Signal) (l net.Listener, err error)

Types

type Proxy

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

func NewProxy

func NewProxy(newsock, oldsock string, debug bool) Proxy

func (*Proxy) AddPattern

func (p *Proxy) AddPattern(pattern string)

func (*Proxy) AddPatterns

func (p *Proxy) AddPatterns(patterns []string)

func (*Proxy) Run

func (p *Proxy) Run()

type UnixSocket

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

UnixSocket just provides the path, so that I can test it

func NewUnixSocket

func NewUnixSocket(path string) UnixSocket

NewUnixSocket return a socket using the path

type UpStream

type UpStream struct {
	Name string
	// contains filtered or unexported fields
}

func NewUpstream

func NewUpstream(socket string, regs []string) *UpStream

NewUpstream returns a new socket (magic)

func (*UpStream) ServeHTTP

func (u *UpStream) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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