Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
File string
Port int
WatchDirs []string
Extensions []string
IncludeGlobs []string
ExcludeGlobs []string
DebounceDelay time.Duration
Verbose bool
OpenBrowser bool
Theme string
CustomCSS string
Timeout time.Duration
OnReady func(port int)
}
func DefaultConfig ¶
func DefaultConfig() Config
type LiveReload ¶
type LiveReload struct {
// contains filtered or unexported fields
}
func NewLiveReload ¶
func NewLiveReload() *LiveReload
func (*LiveReload) ClientCount ¶
func (lr *LiveReload) ClientCount() int
func (*LiveReload) HandleWebSocket ¶
func (lr *LiveReload) HandleWebSocket(w http.ResponseWriter, r *http.Request)
func (*LiveReload) Reload ¶
func (lr *LiveReload) Reload()
Click to show internal directories.
Click to hide internal directories.