winch

package
v1.0.0-alpha.test.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAuth auth.Source = nil

Functions

This section is empty.

Types

type AuthFactory

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

func NewAuthFactory

func NewAuthFactory(listenAddress string, mux *http.ServeMux) *AuthFactory

func (*AuthFactory) Get

func (f *AuthFactory) Get(configSource *pb.AuthSource) (auth.Source, error)

type Pac

type Pac struct {
	PAC []byte
	// contains filtered or unexported fields
}

Pac is a handler that serves auto generated PAC file based on mapping routes.

func NewPacFromFlags

func NewPacFromFlags(winchHostPort string) (*Pac, error)

func (*Pac) ServeHTTP

func (p *Pac) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type Proxy

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

Proxy is a forward/reverse proxy that implements Mapper+Kedge forwarding.

func New

func New(mapper winchMapper, config *tls.Config, logEntry *logrus.Entry) *Proxy

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type StaticRoutes

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

func NewStaticRoutes

func NewStaticRoutes(factory *AuthFactory, mapperConfig *pb.MapperConfig, authConfig *pb.AuthConfig) (*StaticRoutes, error)

func (*StaticRoutes) Get

func (r *StaticRoutes) Get() []kedge_map.RouteGetter

Jump to

Keyboard shortcuts

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