Popularity
3.5
Declining
Activity
0.0
Stable
7
2
0
Monthly Downloads: 18
Programming language: Shell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.2.0
wai-slack-middleware alternatives and similar packages
Based on the "wai" category.
Alternatively, view wai-slack-middleware alternatives based on common mentions on social networks and blogs.
-
wai-middleware-consul
Wai Middleware for Consul -
wai-middleware-auth
Authentication middleware that secures WAI application -
wai-middleware-static
WAI middleware that intercepts requests to static files and serves them if they exist. -
wai-middleware-throttle
WAI Request Throttling Middleware -
wai-middleware-metrics
WAI middleware that collects requests metrics -
wai-middleware-rollbar
Middleware that communicates to Rollbar. -
wai-cli
Command line runner for Wai apps (using Warp) with TLS, CGI, socket activation & graceful shutdown | now on https://codeberg.org/unrelentingtech/wai-cli -
wai-enforce-https
Enforce HTTPS in Wai server app safely. -
wai-middleware-crowd
Middleware and utilities for using Atlassian Crowd authentication -
wai-session-postgresql
WAI Session that keeps its data in a PostgreSQL database -
wai-util
Utility functions for WAI that haven't found another home yet -
wai-session-clientsession
Session store based on clientsession -
wai-middleware-etag
WAI ETag middleware for static files -
wai-middleware-json-errors
Convert errors to json -
wai-middleware-hmac
WAI HMAC Authentication Middleware and Client -
wai-session-tokyocabinet
Session store based on Tokyo Cabinet -
wai-middleware-preprocessor
WAI middleware for static file preprocessors -
wai-hastache
Nice wrapper around hastache for use with WAI -
wai-digestive-functors
Helpers to bind digestive-functors onto wai requests -
wai-middleware-cache
Caching middleware for WAI -
wai-middleware-caching
WAI Middleware to cache (contains generic, LRUCache and Redis Cache backend) -
wai-middleware-headers
addHeaders and cors for Haskell's Network.Wai -
wai-middleware-delegate
A WAI middleware that enables proxying WAI requests to another server. -
wai-middleware-static-embedded
Serve static files embedded in your executable as a wai middleware. -
wai-middleware-static-caching
WAI middleware that intercepts requests to static files and serves them if they exist. -
wai-middleware-travisci
WAI middleware for authenticating webhook payloads from Travis CI -
wai-git-http
Haskell Wai Application for git http-backend -
wai-feature-flags
Feature flag support for WAI applications. -
wai-logger-buffered
A buffered logger for wai applications -
wai-middleware-slack-verify
WAI Slack request verification middleware -
wai-handler-snap
Web Application Interface handler using snap-server. (deprecated)
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of wai-slack-middleware or a related project?
README
wai-slack-middleware
A Slack middleware for wai Used for logging the request information into Slack from a WAI application via middleware.
Usage:
Settings are controlled via the type SlackConfig
:
import Network.HTTP.Types.Status
let slackConfig = SlackConfig {
webHookUrl = "https://hooks.slack.com/services/xxx/xxxxxxxx",
httpManager = appHttpManager foundation,
responseFilter = \resp -> status400 == responseStatus resp,
requestFilter = \_ -> True
}
The above configuration will send slack notification for all 400 http status code.
Integrating with yesod scaffolding templates
Go to Application.hs
and change the function makeApplication
to
something like this:
makeApplication :: App -> IO Application
makeApplication foundation = do
logWare <- makeLogWare foundation
let slackConfig = SlackConfig {
webHookUrl = "https://hooks.slack.com/services/xxxx/xxxxxxx",
httpManager = appHttpManager foundation,
responseFilter = \resp -> status400 == responseStatus resp,
requestFilter = \_ -> True
}
-- Create the WAI application and apply middlewares
appPlain <- toWaiAppPlain foundation
return $ slack slackConfig $ logWare $ defaultMiddlewaresNoLogging appPlain
Ref: