Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ClientList Source #
Instances
type ClientNodes = Map Distance ClientNode Source #
nodeInfos :: ClientList -> [NodeInfo] Source #
isEmpty :: ClientList -> Bool Source #
updateClientNodes :: (ClientNodes -> ClientNodes) -> ClientList -> ClientList Source #
full :: ClientList -> Bool Source #
addNode :: Timestamp -> NodeInfo -> ClientList -> ClientList Source #
removeNode :: PublicKey -> ClientList -> ClientList Source #
foldNodes :: (a -> NodeInfo -> a) -> a -> ClientList -> a Source #
closeNodes :: PublicKey -> ClientList -> [(Distance, NodeInfo)] Source #
genClientList :: PublicKey -> Int -> Gen ClientList Source #