package irmin-watcher

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Irmin watchers.

0.2.0 — homepage

v id p f is the listen hook calling f everytime a sub-path of p is modified. Return a function to call to remove the hook. Default to polling if no better solution is available. FSevents and Inotify backends are available.

val mode : [ `FSEvents | `Inotify | `Polling ]
type stats = {
  1. watchdogs : int;
  2. dispatches : int;
}

hook t is an Irmin.Watcher compatible representation of v.

val stats : unit -> stats

stats () is a snapshot of v's stats.