Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq KBuckets Source # | |
Read KBuckets Source # | |
Show KBuckets Source # | |
Arbitrary KBuckets Source # | |
NodeList KBuckets Source # | |
Defined in Network.Tox.DHT.NodeList addNode :: Timestamp -> NodeInfo -> KBuckets -> KBuckets Source # removeNode :: PublicKey -> KBuckets -> KBuckets Source # viable :: NodeInfo -> KBuckets -> Bool Source # baseKey :: KBuckets -> PublicKey Source # traverseClientLists :: Applicative f => (ClientList -> f ClientList) -> KBuckets -> f KBuckets Source # closeNodes :: PublicKey -> KBuckets -> [(Distance, NodeInfo)] Source # foldMapClientLists :: Monoid m => (ClientList -> m) -> KBuckets -> m Source # foldlClientLists :: (a -> ClientList -> a) -> a -> KBuckets -> a Source # nodeListList :: KBuckets -> [NodeInfo] Source # foldNodes :: (a -> NodeInfo -> a) -> a -> KBuckets -> a Source # lookupPublicKey :: PublicKey -> KBuckets -> Maybe NodeInfo Source # |
newtype KBucketIndex Source #
Instances
bucketIndex :: PublicKey -> PublicKey -> Maybe KBucketIndex Source #
updateBucketForKey :: KBuckets -> PublicKey -> (ClientList -> ClientList) -> KBuckets Source #
updateBucketForIndex :: KBuckets -> KBucketIndex -> (ClientList -> ClientList) -> KBuckets Source #
traverseClientLists :: Applicative f => (ClientList -> f ClientList) -> KBuckets -> f KBuckets Source #
getAllNodes :: KBuckets -> [NodeInfo] Source #