Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hyperion.HoldServer
Synopsis
- type HoldApi = ("retry" :> (Capture "service" Text :> Get '[JSON] (Maybe Text))) :<|> (("retry-all" :> Get '[JSON] [Text]) :<|> ("list" :> Get '[JSON] [Text]))
- newtype HoldMap = HoldMap (TVar (Map Text (MVar ())))
- newHoldMap :: IO HoldMap
- server :: HoldMap -> Server HoldApi
- blockUntilRetried :: MonadIO m => HoldMap -> Text -> m ()
- withHoldServer :: HoldMap -> (Int -> IO a) -> IO a
Documentation
type HoldApi = ("retry" :> (Capture "service" Text :> Get '[JSON] (Maybe Text))) :<|> (("retry-all" :> Get '[JSON] [Text]) :<|> ("list" :> Get '[JSON] [Text])) Source #
newHoldMap :: IO HoldMap Source #