github.com/CyCoreSystems/ari@v4.8.4+incompatible/ext/bridgemon/README.md (about)

     1  # bridgemon
     2  
     3  [![](https://godoc.org/github.com/CyCoreSystems/ari?status.svg)](http://godoc.org/github.com/CyCoreSystems/ari)
     4  
     5  Bridge Monitor provides a simple tool to monitor and cache a bridge's data for
     6  easy, efficient access by other routines.  It is safe for multi-threaded use and
     7  can be closed manually or whenever the bridge is destroyed.
     8  
     9  It is created by passing a bridge handle in.  The bridge should already exist
    10  for this to be operational, and initial data is loaded when the monitor is
    11  created.
    12  
    13  There are two method for consuming the data.  `Data()` provides arbitrary access
    14  to the cached bridge data while `Watch()` provides a channel over which the
    15  bridge data will be sent whenever updates are made.
    16