postgres-websockets-0.11.2.2: Middleware to map LISTEN/NOTIFY messages to Websockets
Safe HaskellSafe-Inferred
LanguageHaskell2010

PostgresWebsockets.Config

Description

This module provides a helper function to read the command line arguments using the AppConfig type to store them. It also can be used to define other middleware configuration that may be delegated to some sort of external configuration.

Synopsis

Documentation

prettyVersion :: Text Source #

User friendly version number

loadConfig :: IO AppConfig Source #

Load all postgres-websockets config from Environment variables. This can be used to use just the middleware or to feed into warpSettings

warpSettings :: (IO () -> IO ()) -> AppConfig -> Settings Source #

Given a shutdown handler and an AppConfig builds a Warp Settings to start a stand-alone server