Prod.Discovery
Description
Module for performing service (endpoints) discovery.
data Track a Source #
Constructors
Defined in Prod.Discovery
Methods
fmap :: (a -> b) -> Track a -> Track b #
(<$) :: a -> Track b -> Track a #
showsPrec :: Int -> Track a -> ShowS #
show :: Track a -> String #
showList :: [Track a] -> ShowS #
data Result a Source #
fmap :: (a -> b) -> Result a -> Result b #
(<$) :: a -> Result b -> Result a #
showsPrec :: Int -> Result a -> ShowS #
show :: Result a -> String #
showList :: [Result a] -> ShowS #
toMaybe :: Result a -> Maybe a Source #
data Discovery a Source #
fmap :: (a -> b) -> Discovery a -> Discovery b #
(<$) :: a -> Discovery b -> Discovery a #
readCurrent :: Discovery a -> IO (Result a) Source #
type Host = Text Source #
data DNSTrack a Source #
fmap :: (a -> b) -> DNSTrack a -> DNSTrack b #
(<$) :: a -> DNSTrack b -> DNSTrack a #
showsPrec :: Int -> DNSTrack a -> ShowS #
show :: DNSTrack a -> String #
showList :: [DNSTrack a] -> ShowS #
dnsA :: Tracer IO (DNSTrack [Host]) -> Host -> IO (Discovery [Host]) Source #
dnsAAAA :: Tracer IO (DNSTrack [Host]) -> Host -> IO (Discovery [Host]) Source #
dig :: Tracer IO (Track [Host]) -> String -> String -> IO (Discovery [Host]) Source #
dnsDiscoveryGauge :: Vector Label3 Gauge Source #
dnsDiscoveryCounter :: Vector Label3 Counter Source #
cmdOut :: forall a. Tracer IO (Track a) -> String -> [String] -> ByteString -> Maybe (MicroSeconds Int) -> a -> (a -> ByteString -> a) -> (a -> a -> IO ()) -> IO (Discovery a) Source #