engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRemoteAddr = errors.Value("bad remote address")
View Source
var ErrServiceNotAvailable = errors.Value("service not available")

Functions

This section is empty.

Types

type Engine

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

func New

func New(watcher driver.Watcher) *Engine

New creates a new Reverse Proxy Engine based on given driver

func (*Engine) HostPolicy

func (e *Engine) HostPolicy(ctx context.Context, host string) error

func (*Engine) ServeHTTP

func (e *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Engine) Start

func (e *Engine) Start()

Jump to

Keyboard shortcuts

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