Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reloader ¶
type Reloader struct { Path string // contains filtered or unexported fields }
func (*Reloader) ListenAndServe ¶ added in v0.0.6
ListenAndServe serves the client and the server-sent events at the given address. Unlike Middleware, it's meant to be used as a standalone server.
func (*Reloader) Middleware ¶
Middleware that rewrites the response body to include the livereload script for HTML or plain text responses. It also serves the livereload server-sent events at the given path. Unlike ListenAndServe, this is meant to be embedded into an existing HTTP server.
Click to show internal directories.
Click to hide internal directories.