Documentation ¶
Index ¶
- type BundleKeyList
- type HotReload
- func (s *HotReload) CurrentBundleKeys() []string
- func (s *HotReload) EmitLog(level LogLevel, message string) error
- func (s *HotReload) HandleWebSocket(w http.ResponseWriter, r *http.Request)
- func (s *HotReload) IsActive() bool
- func (s *HotReload) IsActiveBundle(key string) bool
- func (s *HotReload) ReloadSignal() error
- type HotReloader
- type LogLevel
- type RedirectionEvent
- type SocketRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleKeyList ¶ added in v0.7.0
type BundleKeyList []string
func (BundleKeyList) Diff ¶ added in v0.7.0
func (l BundleKeyList) Diff(bundleList BundleKeyList) BundleKeyList
type HotReload ¶
type HotReload struct { Redirected chan RedirectionEvent // contains filtered or unexported fields }
func (*HotReload) CurrentBundleKeys ¶ added in v0.7.0
func (*HotReload) EmitLog ¶ added in v0.21.0
EmitLog emits a log to the current hot reload socket if one is available
func (*HotReload) HandleWebSocket ¶
func (s *HotReload) HandleWebSocket(w http.ResponseWriter, r *http.Request)
func (*HotReload) IsActiveBundle ¶ added in v0.7.0
IsActiveBundle determines if a bundle is currently active in the web browser
func (*HotReload) ReloadSignal ¶
type HotReloader ¶ added in v0.3.2
type RedirectionEvent ¶ added in v0.7.0
type RedirectionEvent struct { PreviousBundleKeys BundleKeyList BundleKeys BundleKeyList }
type SocketRequest ¶
Click to show internal directories.
Click to hide internal directories.