Versions in this module Expand all Collapse all v0 v0.2.0 Aug 1, 2023 Changes in this version + const DefaultTimeout type Server + func (s *Server) CacheInvalidateHandler(w http.ResponseWriter, r *http.Request) v0.1.0 Jul 14, 2023 Changes in this version + const ServerGracefulShutdownTimeout + var ErrMatchingTarget = fmt.Errorf("no matching target found") + type Listener struct + func NewListener(ctx context.Context, cfg *config.Listener, handler http.Handler) (*Listener, error) + func (l *Listener) Shutdown(ctx context.Context) + func (l *Listener) Start(ctx context.Context) + type Listeners map[string]*Listener + func NewListeners(cfg config.Listeners, handler http.Handler) (Listeners, error) + func (ls Listeners) Start() + func (ls Listeners) Stop() + type Server struct + func NewServer(cfg *config.Configuration, httpcache *cache.HttpCache) (*Server, error) + func (s *Server) Await() + func (s *Server) CacheConfigHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) CacheConfigUpdateHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) CacheFlushHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) CacheKeyPurgeHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) CacheKeysHandler(w http.ResponseWriter, r *http.Request) + func (s *Server) Director() func(req *http.Request) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Shutdown() + func (s *Server) Start(ctx context.Context) + func (s *Server) Stop() + type Target struct + func NewTarget(cfg *config.Upstream) (*Target, error) + type Targets []*Target + func NewTargets(upstreamsConfig config.Upstreams) (Targets, error) + func (tgs Targets) MatchTarget(req *http.Request) (*Target, bool)