Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class NodeList l where Source #
addNode :: Timestamp -> NodeInfo -> l -> l Source #
removeNode :: PublicKey -> l -> l Source #
viable :: NodeInfo -> l -> Bool Source #
baseKey :: l -> PublicKey Source #
traverseClientLists :: Applicative f => (ClientList -> f ClientList) -> l -> f l Source #
closeNodes :: PublicKey -> l -> [(Distance, NodeInfo)] Source #
'closeNodes pub' returns the (pub',node) pairs of the Node List in increasing order of distance of pub' from pub.
foldMapClientLists :: Monoid m => (ClientList -> m) -> l -> m Source #
copied from Data.Traversable.foldMapDefault
foldlClientLists :: (a -> ClientList -> a) -> a -> l -> a Source #
copied from Data.Foldable.foldl
nodeListList :: l -> [NodeInfo] Source #
foldNodes :: (a -> NodeInfo -> a) -> a -> l -> a Source #
lookupPublicKey :: PublicKey -> l -> Maybe NodeInfo Source #