| Copyright | (c) 2018 Sean McGroarty |
|---|---|
| License | BSD3 |
| Maintainer | Sean McGroarty <mcgroas@tcd.ie.com> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Distributed.Types
Description
- 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
type ProcessDeps = (Deps, ProcessId) Source #
A Node and its dependencies
type FileInfo = (ByteString, ByteString) Source #
Tuple of file name and bytes
All Types used messaging are derived from a Message
Only masters can make a Request
Only slaves can issue a Reponse in reply to a Request
Constructors
| PD ProcessDeps | Response to a Ping |
| Transfer | Reponse to a TransferReq |
Data-Type used in a Transfer
Constructors
| TransferInProg FileInfo | Transfer In Progress |
| TransferDone | Informs master the Transfer is complete |