Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(upgrader *websocket.Upgrader) http.HandlerFunc
Handler is a HandlerFunc handling the livereload Websocket interaction. Original: https://github.com/gohugoio/hugo/blob/89bd025ebfd2c559039826641702941fc35a7fdb/livereload/livereload.go#L93-L105 Our version is modified to accept a websocket upgrader coming from the server.
func Initialize ¶
func Initialize()
Initialize starts the Websocket Hub handling live reloads. Original: https://github.com/gohugoio/hugo/blob/89bd025ebfd2c559039826641702941fc35a7fdb/livereload/livereload.go#L107
func ReloadDashboard ¶
func ReloadDashboard(uid string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.