|
@@ -74,27 +74,42 @@ data DeliverData = DeliverData {clientName :: ByteString,
|
|
data HandleData = HandleAddress Address |
|
|
data HandleData = HandleAddress Address |
|
|
HandleResponse (Address, Response) |
|
|
HandleResponse (Address, Response) |
|
|
HandleOk deriving (Show, Ord, Eq)
|
|
HandleOk deriving (Show, Ord, Eq)
|
|
|
|
+
|
|
|
|
+{- |
|
|
|
|
+Data for fetching resource:
|
|
|
|
+
|
|
|
|
+@
|
|
|
|
+FetchRescData clientName account offset size target_or_error
|
|
|
|
+@
|
|
|
|
+-}
|
|
data FetchRescData = FetchRescData
|
|
data FetchRescData = FetchRescData
|
|
- -- | Client name
|
|
|
|
|
|
+ -- Client name
|
|
ByteString
|
|
ByteString
|
|
- -- | From account
|
|
|
|
|
|
+ -- From account
|
|
Account
|
|
Account
|
|
- -- | Offset
|
|
|
|
|
|
+ -- Offset
|
|
Int
|
|
Int
|
|
- -- | Size
|
|
|
|
|
|
+ -- Size
|
|
Int
|
|
Int
|
|
- -- | Target or fetch error
|
|
|
|
|
|
+ -- Target or fetch error
|
|
HandleData deriving (Show, Ord, Eq)
|
|
HandleData deriving (Show, Ord, Eq)
|
|
|
|
+{- |
|
|
|
|
+Data for fetching headers:
|
|
|
|
+
|
|
|
|
+@
|
|
|
|
+FetchHdrData clientName account onlyHeaders query
|
|
|
|
+@
|
|
|
|
+-}
|
|
data FetchHdrData = FetchHdrData
|
|
data FetchHdrData = FetchHdrData
|
|
- -- | Client name
|
|
|
|
|
|
+ -- Client name
|
|
ByteString
|
|
ByteString
|
|
- -- | From account
|
|
|
|
|
|
+ -- From account
|
|
Account
|
|
Account
|
|
- -- | Only headers
|
|
|
|
|
|
+ -- Only headers
|
|
Bool
|
|
Bool
|
|
- -- | Query
|
|
|
|
|
|
+ -- Query
|
|
FtchQuery
|
|
FtchQuery
|
|
- -- | Target or fetch error
|
|
|
|
|
|
+ -- Target or fetch error
|
|
HandleData deriving (Show, Ord, Eq)
|
|
HandleData deriving (Show, Ord, Eq)
|
|
|
|
|
|
makeLenses ''ClientIdentity
|
|
makeLenses ''ClientIdentity
|