bcc-node-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Node.Configuration.Topology

Synopsis

Documentation

newtype NodeHostIPAddress Source #

Constructors

NodeHostIPAddress 

Fields

Instances

Instances details
Eq NodeHostIPAddress Source # 
Instance details

Defined in Bcc.Node.Types

Ord NodeHostIPAddress Source # 
Instance details

Defined in Bcc.Node.Types

Show NodeHostIPAddress Source # 
Instance details

Defined in Bcc.Node.Types

ToJSON NodeHostIPAddress Source # 
Instance details

Defined in Bcc.Node.Types

Methods

toJSONNodeHostIPAddress → Value #

toEncodingNodeHostIPAddress → Encoding #

toJSONList ∷ [NodeHostIPAddress] → Value #

toEncodingList ∷ [NodeHostIPAddress] → Encoding #

FromJSON NodeHostIPAddress Source # 
Instance details

Defined in Bcc.Node.Types

Methods

parseJSON ∷ Value → Parser NodeHostIPAddress #

parseJSONList ∷ Value → Parser [NodeHostIPAddress] #

newtype NodeHostIPv4Address Source #

Constructors

NodeHostIPv4Address 

Fields

Instances

Instances details
Eq NodeHostIPv4Address Source # 
Instance details

Defined in Bcc.Node.Types

Ord NodeHostIPv4Address Source # 
Instance details

Defined in Bcc.Node.Types

Show NodeHostIPv4Address Source # 
Instance details

Defined in Bcc.Node.Types

ToJSON NodeHostIPv4Address Source # 
Instance details

Defined in Bcc.Node.Types

Methods

toJSONNodeHostIPv4Address → Value #

toEncodingNodeHostIPv4Address → Encoding #

toJSONList ∷ [NodeHostIPv4Address] → Value #

toEncodingList ∷ [NodeHostIPv4Address] → Encoding #

FromJSON NodeHostIPv4Address Source # 
Instance details

Defined in Bcc.Node.Types

Methods

parseJSON ∷ Value → Parser NodeHostIPv4Address #

parseJSONList ∷ Value → Parser [NodeHostIPv4Address] #

newtype NodeHostIPv6Address Source #

Constructors

NodeHostIPv6Address 

Fields

Instances

Instances details
Eq NodeHostIPv6Address Source # 
Instance details

Defined in Bcc.Node.Types

Ord NodeHostIPv6Address Source # 
Instance details

Defined in Bcc.Node.Types

Show NodeHostIPv6Address Source # 
Instance details

Defined in Bcc.Node.Types

ToJSON NodeHostIPv6Address Source # 
Instance details

Defined in Bcc.Node.Types

Methods

toJSONNodeHostIPv6Address → Value #

toEncodingNodeHostIPv6Address → Encoding #

toJSONList ∷ [NodeHostIPv6Address] → Value #

toEncodingList ∷ [NodeHostIPv6Address] → Encoding #

FromJSON NodeHostIPv6Address Source # 
Instance details

Defined in Bcc.Node.Types

Methods

parseJSON ∷ Value → Parser NodeHostIPv6Address #

parseJSONList ∷ Value → Parser [NodeHostIPv6Address] #

data NodeSetup Source #

Instances

Instances details
Eq NodeSetup Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Show NodeSetup Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

ToJSON NodeSetup Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Methods

toJSONNodeSetup → Value #

toEncodingNodeSetup → Encoding #

toJSONList ∷ [NodeSetup] → Value #

toEncodingList ∷ [NodeSetup] → Encoding #

FromJSON NodeSetup Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Methods

parseJSON ∷ Value → Parser NodeSetup #

parseJSONList ∷ Value → Parser [NodeSetup] #

data RemoteAddress Source #

Domain name with port number

Constructors

RemoteAddress 

Fields

  • raAddress ∷ !Text

    Either a dns address or an ip address.

  • raPort ∷ !PortNumber

    Port number of the destination.

  • raValency ∷ !Int

    If a DNS address is given valency governs to how many resolved IP addresses should we maintain active (hot) connection; if an IP address is given valency is used as a Boolean value, 0 means to ignore the address;

Instances

Instances details
Eq RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Ord RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Show RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

ToJSON RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Methods

toJSONRemoteAddress → Value #

toEncodingRemoteAddress → Encoding #

toJSONList ∷ [RemoteAddress] → Value #

toEncodingList ∷ [RemoteAddress] → Encoding #

FromJSON RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

Methods

parseJSON ∷ Value → Parser RemoteAddress #

parseJSONList ∷ Value → Parser [RemoteAddress] #

Condense RemoteAddress Source # 
Instance details

Defined in Bcc.Node.Configuration.Topology

readTopologyFileNodeConfigurationIO (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.

remoteAddressToNodeAddressRemoteAddressMaybe (Either NodeIPAddress (NodeDnsAddress, Int)) Source #

Parse raAddress field as an IP address; if it parses and the valency is non zero return corresponding NodeAddress.