Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TopologyError = NodeIdNotFoundInToplogyFile FilePath
- data NetworkTopology
- newtype NodeHostIPAddress = NodeHostIPAddress {}
- newtype NodeHostIPv4Address = NodeHostIPv4Address {}
- newtype NodeHostIPv6Address = NodeHostIPv6Address {}
- data NodeSetup = NodeSetup {
- nodeId :: !Word64
- nodeIPv4Address :: !(Maybe NodeIPv4Address)
- nodeIPv6Address :: !(Maybe NodeIPv6Address)
- producers :: ![RemoteAddress]
- data RemoteAddress = RemoteAddress {}
- nodeAddressToSockAddr :: NodeIPAddress -> SockAddr
- readTopologyFile :: NodeConfiguration -> IO (Either Text NetworkTopology)
- readTopologyFileOrError :: NodeConfiguration -> IO NetworkTopology
- remoteAddressToNodeAddress :: RemoteAddress -> Maybe (Either NodeIPAddress (NodeDnsAddress, Int))
Documentation
newtype TopologyError Source #
Instances
Show TopologyError Source # | |
Defined in Cardano.Node.Configuration.Topology |
data NetworkTopology Source #
Instances
FromJSON NetworkTopology Source # | |
Defined in Cardano.Node.Configuration.Topology parseJSON :: Value -> Parser NetworkTopology # parseJSONList :: Value -> Parser [NetworkTopology] # | |
ToJSON NetworkTopology Source # | |
Defined in Cardano.Node.Configuration.Topology toJSON :: NetworkTopology -> Value # toEncoding :: NetworkTopology -> Encoding # toJSONList :: [NetworkTopology] -> Value # toEncodingList :: [NetworkTopology] -> Encoding # omitField :: NetworkTopology -> Bool # | |
Show NetworkTopology Source # | |
Defined in Cardano.Node.Configuration.Topology | |
Eq NetworkTopology Source # | |
Defined in Cardano.Node.Configuration.Topology (==) :: NetworkTopology -> NetworkTopology -> Bool Source # (/=) :: NetworkTopology -> NetworkTopology -> Bool Source # |
newtype NodeHostIPAddress Source #
Instances
newtype NodeHostIPv4Address Source #
Instances
newtype NodeHostIPv6Address Source #
Instances
NodeSetup | |
|
data RemoteAddress Source #
Domain name with port number
RemoteAddress | |
|
Instances
readTopologyFile :: NodeConfiguration -> IO (Either Text NetworkTopology) Source #
Read the NetworkTopology
configuration from the specified file.
While running a real protocol, this gives your node its own address and
other remote peers it will attempt to connect to.
remoteAddressToNodeAddress :: RemoteAddress -> Maybe (Either NodeIPAddress (NodeDnsAddress, Int)) Source #
Parse raAddress
field as an IP address; if it parses and the valency is
non zero return corresponding NodeAddress.