router

package
v0.0.0-...-f52ea5f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TLS_PRESET_MODERN       = "modern"
	TLS_PRESET_INTERMEDIATE = "intermediate"
	TLS_PRESET_OLD          = "old"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	LogPath        string
	DeadBackendTTL int
	Backend        backend.RoutesBackend
	CacheEnabled   bool
	// contains filtered or unexported fields
}

func (*Router) ChooseBackend

func (router *Router) ChooseBackend(host string) (*reverseproxy.RequestData, error)

func (*Router) EndRequest

func (router *Router) EndRequest(reqData *reverseproxy.RequestData, isDead bool, fn func() *log.LogEntry) error

func (*Router) Healthcheck

func (router *Router) Healthcheck() error

func (*Router) Init

func (router *Router) Init() error

func (*Router) Stop

func (router *Router) Stop()

type RouterListener

type RouterListener struct {
	ReverseProxy reverseproxy.ReverseProxy
	Listen       string
	TLSListen    string
	TLSPreset    string
	CertLoader   tls.CertificateLoader
	// contains filtered or unexported fields
}

func (*RouterListener) Serve

func (r *RouterListener) Serve()

func (*RouterListener) Stop

func (r *RouterListener) Stop()

Jump to

Keyboard shortcuts

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