Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2019 Changes in this version + type Option func(*config) + func WithHost(host string) Option + func WithPort(port int) Option + func WithTLSPort(port int) Option + type RoutingTable struct + func NewRoutingTable(payload *watcher.Payload) *RoutingTable + func (rt *RoutingTable) GetBackend(host, path string) (*url.URL, error) + func (rt *RoutingTable) GetCertificate(sni string) (*tls.Certificate, error) + type Server struct + func New(options ...Option) *Server + func (s *Server) Run(ctx context.Context) error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Update(payload *watcher.Payload)