Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub manages per-directory file watchers and fans out change notifications to subscribers keyed by file path.
func (*Hub) Subscribe ¶
Subscribe creates a channel that receives notifications when the given file changes. The caller must call Unsubscribe when done.
func (*Hub) Unsubscribe ¶
Unsubscribe removes a subscriber channel for the given file path.
Click to show internal directories.
Click to hide internal directories.