Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data PeerSource Source #
Where did this peer come from? Policy functions can choose to treat peers differently depending on where we found them from.
Instances
Enum PeerSource Source # | |
Defined in Ouroboros.Network.PeerSelection.Types succ ∷ PeerSource → PeerSource # pred ∷ PeerSource → PeerSource # toEnum ∷ Int → PeerSource # fromEnum ∷ PeerSource → Int # enumFrom ∷ PeerSource → [PeerSource] # enumFromThen ∷ PeerSource → PeerSource → [PeerSource] # enumFromTo ∷ PeerSource → PeerSource → [PeerSource] # enumFromThenTo ∷ PeerSource → PeerSource → PeerSource → [PeerSource] # | |
Show PeerSource Source # | |
Defined in Ouroboros.Network.PeerSelection.Types | |
Eq PeerSource Source # | |
Defined in Ouroboros.Network.PeerSelection.Types (==) ∷ PeerSource → PeerSource → Bool # (/=) ∷ PeerSource → PeerSource → Bool # | |
Ord PeerSource Source # | |
Defined in Ouroboros.Network.PeerSelection.Types compare ∷ PeerSource → PeerSource → Ordering # (<) ∷ PeerSource → PeerSource → Bool # (<=) ∷ PeerSource → PeerSource → Bool # (>) ∷ PeerSource → PeerSource → Bool # (>=) ∷ PeerSource → PeerSource → Bool # max ∷ PeerSource → PeerSource → PeerSource # min ∷ PeerSource → PeerSource → PeerSource # |
data PeerStatus Source #
PeerCold | Peer is in true cold which means no connection to exists and the outbound governor is safe to promote it. |
PeerCooling | Peer is in cold state but its connection still lingers. I.e. it is still in progress to be fully demoted. Note:
The `PeerCooling -> PeerCold` state transition is an `outbound-governor`
reflection of the connection-manager's `TerminatingSt -> TerminatedSt`
state transition (our version of tcp's |
PeerWarm | |
PeerHot |
Instances
Show PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types | |
Eq PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types (==) ∷ PeerStatus → PeerStatus → Bool # (/=) ∷ PeerStatus → PeerStatus → Bool # | |
Ord PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types compare ∷ PeerStatus → PeerStatus → Ordering # (<) ∷ PeerStatus → PeerStatus → Bool # (<=) ∷ PeerStatus → PeerStatus → Bool # (>) ∷ PeerStatus → PeerStatus → Bool # (>=) ∷ PeerStatus → PeerStatus → Bool # max ∷ PeerStatus → PeerStatus → PeerStatus # min ∷ PeerStatus → PeerStatus → PeerStatus # |