livereload

package
v0.0.0-...-206440e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceRefresh

func ForceRefresh()

ForceRefresh tells livereload to force a hard refresh.

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler is a HandlerFunc handling the livereload Websocket interaction.

func Initialize

func Initialize()

Initialize starts the Websocket Hub handling live reloads.

func RefreshPath

func RefreshPath(s string)

RefreshPath tells livereload to refresh only the given path. If that path points to a CSS stylesheet or an image, only the changes will be updated in the browser, not the entire page.

func ServeJS

func ServeJS(w http.ResponseWriter, r *http.Request)

ServeJS serves the liverreload.js who's reference is injected into the page.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL