toxiproxy-haskell 0.2.0.0 → 0.2.1.0
raw patch · 2 files changed
+18/−2 lines, 2 files
Files
- src/Toxiproxy.hs +16/−0
- toxiproxy-haskell.cabal +2/−2
src/Toxiproxy.hs view
@@ -23,6 +23,9 @@ , Version(..) , Stream(..) , ToxicType(..)+ , ProxyName(..)+ , ToxicName(..)+ , Host , toxiproxyUrl , withDisabled , withToxic@@ -209,18 +212,31 @@ toxiproxyAPI :: Proxy.Proxy ToxiproxyAPI toxiproxyAPI = Proxy.Proxy +-- | Returns the server version number. getVersion :: ClientM Version+-- | Enable all proxies and remove all active toxics. postReset :: ClientM NoContent+-- | List existing proxies and their toxics. getProxies :: ClientM (Map ProxyName Proxy)+-- | Create a new proxy. createProxy :: Proxy -> ClientM Proxy+-- | Get a proxy with all its active toxics. getProxy :: ProxyName -> ClientM Proxy+-- | Create or replace a list of proxies. postPopulate :: [Proxy] -> ClientM Populate+-- | Update a proxy's fields. updateProxy :: ProxyName -> Proxy -> ClientM Proxy+-- | Delete an existing proxy. deleteProxy :: ProxyName -> ClientM NoContent+-- | List active toxics. getToxics :: ProxyName -> ClientM [Toxic]+-- | Create a new toxic. createToxic :: ProxyName -> Toxic -> ClientM Toxic+-- | Get an active toxic's fields. getToxic :: ProxyName -> ToxicName -> ClientM Toxic+-- | Update an active toxic. updateToxic :: ProxyName -> ToxicName -> Toxic -> ClientM Toxic+-- | Remove an active toxic. deleteToxic :: ProxyName -> ToxicName -> ClientM NoContent (getVersion :<|> postReset :<|> getProxies :<|> createProxy :<|> getProxy :<|> postPopulate
toxiproxy-haskell.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: d0e71416ad274526a7e079fcae1e0d802defc1f7a0e5e9e03dcfd872153b1dd2+-- hash: 925faa27bf39f06313634711d3cf73fefa912a172ed99b787d3ed25c126af8d5 name: toxiproxy-haskell-version: 0.2.0.0+version: 0.2.1.0 synopsis: Client library for Toxiproxy: a TCP failure testing proxy. description: Please see the README on Github at <https://github.com/jpittis/toxiproxy-haskell#readme> category: web