cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Network.Ntp

Description

This module provides the Ntp client related settings, types and re-exports used in a number of places throughout codebase.

Synopsis

Documentation

withWalletNtpClient Source #

Arguments

:: IOManager

The global IOManager instance, set up by the application main function.

-> Tracer IO NtpTrace

Logging object

-> ( NtpClient -> IO a)

Action to run

-> IO a

Set up a NtpClient and pass it to the given action. The NtpClient is terminated when the callback returns.

getNtpStatus Source #

Arguments

:: NtpClient
-> Bool

When True , will block and force a NTP check instead of using cached results

-> IO ApiNetworkClock

re-exports from ntp-client

data NtpClient Source #

NtpClient which recieves updates of the wall clcok drift every ntpPollDelay . It also allows to force engaging in ntp protocol.

Constructors

NtpClient

Fields

Orphan instances

ToText IPVersion Source #
Instance details

ToText NtpTrace Source #
Instance details

HasPrivacyAnnotation NtpTrace Source #
Instance details

Methods

getPrivacyAnnotation :: NtpTrace -> PrivacyAnnotation

HasSeverityAnnotation NtpTrace Source #
Instance details

Methods

getSeverityAnnotation :: NtpTrace -> Severity