gini-network-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Network.Types

Synopsis

Documentation

class HasNetworkConfig env where #

An environment which contains a NetworkConfig.

Minimal complete definition

networkConfigL

Methods

networkConfigL #

Arguments

:: Lens' env NetworkConfig

Lens to get or set the NetworkConfig

data NetworkConfig #

Configuration value used by the entire gini-network package.

data NetworkException #

Things that can go wrong in gini-network.

Note: Many other exception types may be thrown from underlying libraries. Does not attempt to wrap these underlying exceptions.

networkConfigNetworkId :: NetworkConfig -> NetworkId #

Access network ID from network configuration

networkConfigPreconfiguredPeers :: NetworkConfig -> Set Peer #

Access preconfigured peers from network configuration