winch

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

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) (tokenauth.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