Copyright | (c) 2018 Sean McGroarty |
---|---|
License | BSD3 |
Maintainer | Sean McGroarty <mcgroas@tcd.ie.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- data AppConfig = AppConfig {}
- type NetProc a = ReaderT AppConfig Process a
- runNetProc :: AppConfig -> NetProc a -> Process a
- data NetworkConfig = NetworkConfig {}
- type Node = ProcessId
- type Network = [Node]
- type Deps = [String]
- type ProcessDeps = (Deps, ProcessId)
- type FileInfo = (ByteString, ByteString)
- data Message
- data Request
- data Response
- data Transfer
- data ProcessError = SlaveError
Documentation
Configuration for the master node
data NetworkConfig Source #
Host and Port of a Node
type ProcessDeps = (Deps, ProcessId) Source #
A Node and its dependencies
type FileInfo = (ByteString, ByteString) Source #
Tuple of file name and bytes
Only masters can make a Request
Only slaves can issue a Reponse in reply to a Request
PD ProcessDeps | Response to a Ping |
Transfer | Reponse to a TransferReq |
Data-Type used in a Transfer
TransferInProg FileInfo | Transfer In Progress |
TransferDone | Informs master the Transfer is complete |