hotreload

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HotReload

type HotReload struct {
	// contains filtered or unexported fields
}

func New

func New() *HotReload

func (*HotReload) CurrentBundleKey

func (s *HotReload) CurrentBundleKey() string

func (*HotReload) HandleWebSocket

func (s *HotReload) HandleWebSocket(w http.ResponseWriter, r *http.Request)

func (*HotReload) ReloadSignal

func (s *HotReload) ReloadSignal() error

type HotReloader added in v0.3.2

type HotReloader interface {
	ReloadSignal() error
	HandleWebSocket(w http.ResponseWriter, r *http.Request)
	CurrentBundleKey() string
}

type SocketRequest

type SocketRequest struct {
	Operation string `json:"operation"`
	Value     string `json:"value"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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