Versions in this module Expand all Collapse all v0 v0.2.1 Aug 4, 2026 Changes in this version + type Config struct + Debug bool + Directory string + Host string + IgnorePaths []string + Mode Mode + OnReload func() + Port int + ProxyURL string + WatchPaths []string + type FileEvent struct + Op string + Path string + Time time.Time + type Mode string + const ModeProxy + const ModeStatic + type Server struct + func New(cfg Config) (*Server, error) + func (s *Server) Addr() string + func (s *Server) IsRunning() bool + func (s *Server) Port() int + func (s *Server) Start(ctx context.Context) error + func (s *Server) Stop(ctx context.Context) error + func (s *Server) URL() string + type Watcher struct + func NewWatcher(cfg WatcherConfig) (*Watcher, error) + func (w *Watcher) Start() error + func (w *Watcher) Stop() error + type WatcherConfig struct + Debug bool + Ignore []string + OnEvent func(event FileEvent) + Paths []string