Documentation ¶
Overview ¶
Package peerstatus is a threadsafe global cache to store recent peer status messages for access across multiple services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailureCount ¶
FailureCount returns the failure count for the particular peer.
func IncreaseFailureCount ¶
IncreaseFailureCount increases the failure count for the particular peer.
func IsBadPeer ¶
IsBadPeer checks whether the given peer has exceeded the number of bad handshakes threshold.
func LastUpdated ¶
LastUpdated time which the status was set for the given peer. Threadsafe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.