ouroboros-network-0.1.0.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.PeerSelection.Types

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.

data PeerAdvertise Source #

Should this peer be advertised to other peers asking for known peers? For certain peers specified by configuration it would be an appropriate policy to keep them private.

Instances

Instances details
Eq PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Ord PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Show PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Generic PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Associated Types

type Rep PeerAdvertiseTypeType Source #

FromJSON PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Methods

parseJSON ∷ Value → Parser PeerAdvertise

parseJSONList ∷ Value → Parser [PeerAdvertise]

ToJSON PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Methods

toJSONPeerAdvertise → Value

toEncodingPeerAdvertise → Encoding

toJSONList ∷ [PeerAdvertise] → Value

toEncodingList ∷ [PeerAdvertise] → Encoding

type Rep PeerAdvertise Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

type Rep PeerAdvertise = D1 ('MetaData "PeerAdvertise" "Ouroboros.Network.PeerSelection.Types" "ouroboros-network-0.1.0.0-inplace" 'False) (C1 ('MetaCons "DoNotAdvertisePeer" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "DoAdvertisePeer" 'PrefixI 'False) (U1TypeType))