This repository has been archived on 2026-07-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
codespace/internal/watcher/watcher.go
T
2026-07-02 15:07:54 +08:00

16 lines
334 B
Go

package watcher
// Event represents a filesystem change event.
type Event struct {
Type string `json:"type"`
Path string `json:"path"`
}
// Watcher is a placeholder interface for future filesystem watching.
// Not wired into the API in v1.
type Watcher interface {
Start(root string) error
Stop() error
Events() <-chan Event
}