Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
Strategy implements the hotload Strategy inferface by using fsnotify under the covers.
func NewStrategy ¶
func NewStrategy() *Strategy
NewStrategy implements a hotload strategy that monitors config changes in a file using fsnotify.
func (*Strategy) Close ¶ added in v1.5.0
func (s *Strategy) Close()
Close implements the hotload.Strategy interface. Closes this strategy by closing the internal watcher and closing all the update channels.
func (*Strategy) CloseWatch ¶ added in v1.5.0
CloseWatch implements the hotload.Strategy interface. Closes the specified watch by removing the path from the watcher and closing the path's update channel.
Click to show internal directories.
Click to hide internal directories.