Documentation ¶
Index ¶
- Constants
- type Router
- func (router *Router) ChooseBackend(host string) (*reverseproxy.RequestData, error)
- func (router *Router) EndRequest(reqData *reverseproxy.RequestData, isDead bool, fn func() *log.LogEntry) error
- func (router *Router) Healthcheck() error
- func (router *Router) Init() error
- func (router *Router) Stop()
- type RouterListener
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 ¶
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()
Click to show internal directories.
Click to hide internal directories.