Copyright | © 2020 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the Ntp client related settings, types and re-exports used in a number of places throughout codebase.
Synopsis
- withWalletNtpClient :: IOManager -> Tracer IO NtpTrace -> ( NtpClient -> IO a) -> IO a
- getNtpStatus :: NtpClient -> Bool -> IO ApiNetworkClock
-
data
NtpTrace
- = NtpTraceStartNtpClient
- | NtpTraceRestartDelay Int
- | NtpTraceRestartingClient
- | NtpTraceIOError IOError
- | NtpTraceLookupsFails
- | NtpTraceClientStartQuery
- | NtpTraceNoLocalAddr
- | NtpTraceResult NtpStatus
- | NtpTraceRunProtocolResults ( ResultOrFailure [NtpOffset])
- | NtpTracePacketSent SockAddr NtpPacket
- | NtpTracePacketSendError SockAddr IOException
- | NtpTracePacketDecodeError SockAddr String
- | NtpTracePacketReceived SockAddr NtpPacket
- | NtpTraceWaitingForRepliesTimeout IPVersion
- data NtpClient = NtpClient { }
Documentation
:: NtpClient | |
-> Bool |
When
|
-> IO ApiNetworkClock |
re-exports from ntp-client
Instances
Show NtpTrace | |
ToText NtpTrace Source # | |
HasPrivacyAnnotation NtpTrace | |
Defined in Network.Ntp getPrivacyAnnotation :: NtpTrace -> PrivacyAnnotation |
|
HasSeverityAnnotation NtpTrace | |
Defined in Network.Ntp getSeverityAnnotation :: NtpTrace -> Severity |
NtpClient
which recieves updates of the wall clcok drift every
ntpPollDelay
. It also allows to force engaging in ntp protocol.
NtpClient | |
|