prodapi-0.1.0.0: Some curated and opinionated packages for building Haskell services.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prod.Discovery

Description

Module for performing service (endpoints) discovery.

Documentation

data Track a Source #

Constructors

BackgroundTrack (Track (Result a)) 

Instances

Instances details
Functor Track Source # 
Instance details

Defined in Prod.Discovery

Methods

fmap :: (a -> b) -> Track a -> Track b #

(<$) :: a -> Track b -> Track a #

Show a => Show (Track a) Source # 
Instance details

Defined in Prod.Discovery

Methods

showsPrec :: Int -> Track a -> ShowS #

show :: Track a -> String #

showList :: [Track a] -> ShowS #

data Result a Source #

Constructors

NotAsked 
Asked UTCTime 
Found UTCTime a 

Instances

Instances details
Functor Result Source # 
Instance details

Defined in Prod.Discovery

Methods

fmap :: (a -> b) -> Result a -> Result b #

(<$) :: a -> Result b -> Result a #

Show a => Show (Result a) Source # 
Instance details

Defined in Prod.Discovery

Methods

showsPrec :: Int -> Result a -> ShowS #

show :: Result a -> String #

showList :: [Result a] -> ShowS #

data Discovery a Source #

Constructors

Discovery (BackgroundVal (Result a)) 

Instances

Instances details
Functor Discovery Source # 
Instance details

Defined in Prod.Discovery

Methods

fmap :: (a -> b) -> Discovery a -> Discovery b #

(<$) :: a -> Discovery b -> Discovery a #

type Host = Text Source #

data DNSTrack a Source #

Constructors

DNSTrack Text Host (Track a) 

Instances

Instances details
Functor DNSTrack Source # 
Instance details

Defined in Prod.Discovery

Methods

fmap :: (a -> b) -> DNSTrack a -> DNSTrack b #

(<$) :: a -> DNSTrack b -> DNSTrack a #

Show a => Show (DNSTrack a) Source # 
Instance details

Defined in Prod.Discovery

Methods

showsPrec :: Int -> DNSTrack a -> ShowS #

show :: DNSTrack a -> String #

showList :: [DNSTrack a] -> ShowS #

cmdOut :: forall a. Tracer IO (Track a) -> String -> [String] -> ByteString -> Maybe (MicroSeconds Int) -> a -> (a -> ByteString -> a) -> (a -> a -> IO ()) -> IO (Discovery a) Source #