ingress

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BumpCert

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

type BumpTLS

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

func NewBumpTLS

func NewBumpTLS(certFile, keyFile, outDir string) (*BumpTLS, error)

NewBumpTLS Creates a new BumpTLS instance

func (*BumpTLS) GetConfigByName

func (b *BumpTLS) GetConfigByName(name string) (*tls.Config, error)

GetConfigByName generates a configuration for the server the client is attempting to connect to

func (*BumpTLS) GetConfigForClient

func (b *BumpTLS) GetConfigForClient(info *tls.ClientHelloInfo) (*tls.Config, error)

GetConfigForClient generates a configuration for the server the client is attempting to connect to

type HTTPFrontend

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

HTTPFrontend is a http subdomain based re-mapping proxy

func NewHTTPFrontend

func NewHTTPFrontend(address, port, certFile, keyFile, certDir string) (*HTTPFrontend, error)

NewHTTPFrontend is an http frontend

func (*HTTPFrontend) BindProxy

func (h *HTTPFrontend) BindProxy(p Proxy)

BindProxy binds the underlying proxy to the frontend

func (*HTTPFrontend) Run

func (h *HTTPFrontend) Run()

func (*HTTPFrontend) ServeHTTP

func (h *HTTPFrontend) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HTTPFrontend) Stop

func (h *HTTPFrontend) Stop()

type Proxy

type Proxy interface {
	HandleRequest(*http.Request) (*http.Response, error)
}

Proxy interface wrapped by ingress module

type SingleListener

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

func NewSingleListener

func NewSingleListener(conn net.Conn) SingleListener

func (*SingleListener) Accept

func (sl *SingleListener) Accept() (net.Conn, error)

func (*SingleListener) Addr

func (sl *SingleListener) Addr() net.Addr

func (*SingleListener) Close

func (sl *SingleListener) Close() error

Jump to

Keyboard shortcuts

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