Documentation
¶
Overview ¶
Package hotload provides runtime protocol hot-loading and dynamic registration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
Type string `json:"type"` // "loaded", "updated", "removed", "error"
Protocol string `json:"protocol"`
File string `json:"file"`
Time time.Time `json:"time"`
Error string `json:"error,omitempty"`
}
Event represents a hot-load event.
type Stats ¶
type Stats struct {
WatchedFiles int `json:"watched_files"`
LastScan time.Time `json:"last_scan"`
TotalLoads int `json:"total_loads"`
}
Stats returns hot-load statistics.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watches for PSL file changes and hot-reloads protocols.
func NewWatcher ¶
NewWatcher creates a new file watcher for hot-loading.
Click to show internal directories.
Click to hide internal directories.