Data.ZGossip
newZGS :: ZGSCmd -> ZGSMsg Source #
parseZGS :: [ByteString] -> Either String ZGSMsg Source #
encodeZGS :: ZGSMsg -> ByteString Source #
type Key = ByteString Source #
type Value = ByteString Source #
type TTL = Int Source #
type Peer = ByteString Source #
data ZGSCmd Source #
Constructors
Defined in Data.ZGossip
Methods
showsPrec :: Int -> ZGSCmd -> ShowS #
show :: ZGSCmd -> String #
showList :: [ZGSCmd] -> ShowS #
(==) :: ZGSCmd -> ZGSCmd -> Bool #
(/=) :: ZGSCmd -> ZGSCmd -> Bool #
compare :: ZGSCmd -> ZGSCmd -> Ordering #
(<) :: ZGSCmd -> ZGSCmd -> Bool #
(<=) :: ZGSCmd -> ZGSCmd -> Bool #
(>) :: ZGSCmd -> ZGSCmd -> Bool #
(>=) :: ZGSCmd -> ZGSCmd -> Bool #
max :: ZGSCmd -> ZGSCmd -> ZGSCmd #
min :: ZGSCmd -> ZGSCmd -> ZGSCmd #
data ZGSMsg Source #
Fields
showsPrec :: Int -> ZGSMsg -> ShowS #
show :: ZGSMsg -> String #
showList :: [ZGSMsg] -> ShowS #
(==) :: ZGSMsg -> ZGSMsg -> Bool #
(/=) :: ZGSMsg -> ZGSMsg -> Bool #
compare :: ZGSMsg -> ZGSMsg -> Ordering #
(<) :: ZGSMsg -> ZGSMsg -> Bool #
(<=) :: ZGSMsg -> ZGSMsg -> Bool #
(>) :: ZGSMsg -> ZGSMsg -> Bool #
(>=) :: ZGSMsg -> ZGSMsg -> Bool #
max :: ZGSMsg -> ZGSMsg -> ZGSMsg #
min :: ZGSMsg -> ZGSMsg -> ZGSMsg #