decentralized-message-queue
Safe HaskellNone
LanguageHaskell2010

DMQ.Configuration

Synopsis

Documentation

data Configuration ntnFd ntnAddr ntcFd ntcAddr Source #

Instances

Instances details
FromJSON (Configuration ntnFd ntnAddr ntcFd ntcAddr) Source # 
Instance details

Defined in DMQ.Configuration

Methods

parseJSON :: Value -> Parser (Configuration ntnFd ntnAddr ntcFd ntcAddr) #

parseJSONList :: Value -> Parser [Configuration ntnFd ntnAddr ntcFd ntcAddr] #

omittedField :: Maybe (Configuration ntnFd ntnAddr ntcFd ntcAddr) #

Generic (Configuration ntnFd ntnAddr ntcFd ntcAddr) Source # 
Instance details

Defined in DMQ.Configuration

Associated Types

type Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) 
Instance details

Defined in DMQ.Configuration

type Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) = D1 ('MetaData "Configuration" "DMQ.Configuration" "decentralized-message-queue-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Configuration" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dmqcAcceptedConnectionsLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AcceptedConnectionsLimit) :*: (S1 ('MetaSel ('Just "dmqcDiffusionMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffusionMode) :*: S1 ('MetaSel ('Just "dmqcTargetOfRootPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "dmqcTargetOfKnownPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "dmqcTargetOfEstablishedPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dmqcTargetOfActivePeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) :*: ((S1 ('MetaSel ('Just "dmqcTargetOfKnownBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "dmqcTargetOfEstablishedBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dmqcTargetOfActiveBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "dmqcProtocolIdleTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime) :*: S1 ('MetaSel ('Just "dmqcChurnInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)) :*: (S1 ('MetaSel ('Just "dmqcPeerSharing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PeerSharing) :*: S1 ('MetaSel ('Just "dmqcNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkMagic))))))

Methods

from :: Configuration ntnFd ntnAddr ntcFd ntcAddr -> Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) x #

to :: Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) x -> Configuration ntnFd ntnAddr ntcFd ntcAddr #

type Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) Source # 
Instance details

Defined in DMQ.Configuration

type Rep (Configuration ntnFd ntnAddr ntcFd ntcAddr) = D1 ('MetaData "Configuration" "DMQ.Configuration" "decentralized-message-queue-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Configuration" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dmqcAcceptedConnectionsLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AcceptedConnectionsLimit) :*: (S1 ('MetaSel ('Just "dmqcDiffusionMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffusionMode) :*: S1 ('MetaSel ('Just "dmqcTargetOfRootPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "dmqcTargetOfKnownPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "dmqcTargetOfEstablishedPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dmqcTargetOfActivePeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) :*: ((S1 ('MetaSel ('Just "dmqcTargetOfKnownBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "dmqcTargetOfEstablishedBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "dmqcTargetOfActiveBigLedgerPeers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "dmqcProtocolIdleTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime) :*: S1 ('MetaSel ('Just "dmqcChurnInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DiffTime)) :*: (S1 ('MetaSel ('Just "dmqcPeerSharing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PeerSharing) :*: S1 ('MetaSel ('Just "dmqcNetworkMagic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkMagic))))))

readConfigurationFile :: FilePath -> IO (Either Text (Configuration ntnFd ntnAddr ntcFd ntcAddr)) Source #

Read the DMQConfiguration from the specified file.

readConfigurationFileOrError :: FilePath -> IO (Configuration ntnFd ntnAddr ntcFd ntcAddr) Source #

mkDiffusionConfiguration :: CLIOptions -> NetworkTopology extraConfig extraFlags -> Configuration ntnFd SockAddr ntcFd ntcAddr -> IO (Configuration extraFlags IO ntnFd SockAddr ntcFd ntcAddr) Source #