ouroboros-network
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.KeepAlive.Registry

Synopsis

Documentation

data KeepAliveRegistry peer (m :: Type -> Type) Source #

A registry which keeps PeerGSV information based on `keep-alive` measurements.

Constructors

KeepAliveRegistry 

Fields

bracketKeepAliveClient :: forall m a peer. (MonadSTM m, MonadFork m, MonadMask m, Ord peer) => KeepAliveRegistry peer m -> peer -> (StrictTVar m (Map peer PeerGSV) -> m a) -> m a Source #

readPeerGSVs :: forall (m :: Type -> Type) peer. (MonadSTM m, Ord peer) => KeepAliveRegistry peer m -> STM m (Map peer PeerGSV) Source #

A read-only STM action to get the PeerGSVs for all fetch clients in the FetchClientRegistry.