Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.0% on proxy.golang.org
Top 1.0% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 5.8% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/syncthing/notify

Package notify implements access to filesystem events. Notify is a high-level abstraction over filesystem watchers like inotify, kqueue, FSEvents, FEN or ReadDirectoryChangesW. Watcher implementations are split into two groups: ones that natively support recursive notifications (FSEvents and ReadDirectoryChangesW) and ones that do not (inotify, kqueue, FEN). For more details see watcher and recursiveWatcher interfaces in watcher.go source file. On top of filesystem watchers notify maintains a watchpoint tree, which provides a strategy for creating and closing filesystem watches and dispatching filesystem events to user channels. An event set is just an event list joint using bitwise OR operator into a single event value. Both the platform-independent (see Constants) and specific events can be used. Refer to the event_*.go source files for information about the available events. A filesystem watch or just a watch is platform-specific entity which represents a single path registered for notifications for specific event set. Setting a watch means using platform-specific API calls for creating / initializing said watch. For each watcher the API call is: To rewatch means to either shrink or expand an event set that was previously registered during watch operation for particular filesystem watch. A watchpoint is a list of user channel and event set pairs for particular path (watchpoint tree's node). A single watchpoint can contain multiple different user channels registered to listen for one or more events. A single user channel can be registered in one or more watchpoints, recursive and non-recursive ones as well.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/syncthing/notify
License: MIT
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/syncthing
Dependent packages: 24
Dependent repositories: 109
Stars: 26 on GitHub
Forks: 13 on GitHub
Docker dependents: 135
Docker downloads: 278,998,494
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/syncthing
Last synced: 15 days ago

    Loading...
    Readme
    Loading...