module NgxExport.Healthcheck.Types (ServiceKey
,Upstream
,PeerName
,PeerHostName
,Peer
,Peers
,FlatPeers
,AnnotatedFlatPeers
,MUpstream
,MServiceKey
) where
import Data.Text (Text)
import Data.Map (Map)
import Data.Time.Clock (UTCTime)
type ServiceKey = Text
type Upstream = Text
type PeerName = Text
type PeerHostName = Text
type Peer = (PeerName, PeerHostName)
type Peers = [Peer]
type FlatPeers = [PeerName]
type AnnotatedFlatPeers = [(UTCTime, PeerName)]
type MUpstream a = Map Upstream a
type MServiceKey a = Map ServiceKey (MUpstream a)