ouroboros-network-0.1.0.1: A networking layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Network.PeerSelection.RootPeersDNS.DNSActions

Synopsis

DNS based actions for local and public root providers

data DNSActions resolver exception m Source #

Dictionary of DNS actions vocabulary

Constructors

DNSActions

Fields

DNSActions IO

ioDNSActions :: LookupReqs -> DNSActions Resolver IOException IO Source #

Bundle of DNS Actions that runs in IO The IPv4 and IPv6 addresses the node will be using should determine the LookupReqs so that we can avoid lookups for address types that wont be used.

Utils

Resource

newtype Resource m err a Source #

Evolving resource; We use it to reinitialise the dns library if the ` etc resolv.conf` file was modified.

Constructors

Resource

Fields

withResource' Source #

Arguments

:: MonadDelay m
=> Tracer m err
-> NonEmpty DiffTime

delays between each re-try

-> Resource m err a
-> m (a, Resource m err a)

Like withResource but retries untill success.

Error type