| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.RTView.ErrorBuffer
Synopsis
- data ErrorBuffer a
- readErrorBuffer :: ErrorBuffer a -> IO [(LoggerName, LogObject a)]
- effectuate :: IsEffectuator t a => t a -> LogObject a -> IO ()
- realize :: IsBackend t a => Configuration -> IO (t a)
- unrealize :: IsBackend t a => t a -> IO ()
Documentation
data ErrorBuffer a Source #
All |LogObject|s accepted by |TraceAcceptor| plugin will be decoded and traced to 'cardano-rt-view.acceptor'. Because of RView configuration all these |LogObject|s will be sent to |LogBufferBK| and |ErrorBufferBK|, but |ErrorBufferBK| is storing only errors. Later NodesState.Updater will extract errors from |ErrorBufferBK| and display them in UI (Errors tab).
Instances
| IsEffectuator ErrorBuffer a Source # | |
Defined in Cardano.RTView.ErrorBuffer Methods effectuate :: ErrorBuffer a -> LogObject a -> IO () Source # effectuatefrom :: IsEffectuator s a => ErrorBuffer a -> LogObject a -> s a -> IO () Source # handleOverflow :: ErrorBuffer a -> IO () Source # | |
| FromJSON a => IsBackend ErrorBuffer a Source # | |
Defined in Cardano.RTView.ErrorBuffer Associated Types type BackendFailure ErrorBuffer Source # Methods bekind :: ErrorBuffer a -> BackendKind Source # realize :: Configuration -> IO (ErrorBuffer a) Source # realizefrom :: IsEffectuator s a => Configuration -> Trace IO a -> s a -> IO (ErrorBuffer a) Source # unrealize :: ErrorBuffer a -> IO () Source # | |
| type BackendFailure ErrorBuffer Source # | |
Defined in Cardano.RTView.ErrorBuffer | |
readErrorBuffer :: ErrorBuffer a -> IO [(LoggerName, LogObject a)] Source #
Once we read the current content of the queue, it should be cleaned.
effectuate :: IsEffectuator t a => t a -> LogObject a -> IO () Source #