Safe Haskell | None |
---|---|
Language | Haskell2010 |
- mkServe :: HasServer api context => Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> ServerT api (App c) -> Application
- mkServe' :: (HasServer api context, HasServer api' context) => (Server api -> Server api') -> Proxy api' -> Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> ServerT api (App c) -> Application
- ask :: Monad m => ReaderT * r m r
- type AppM c = ReaderT (Request, c)
- type App c = AppM c Handler
- type ReqApp = ReaderT Request Handler
- data SwaggerConfig = SwaggerConfig {}
- mkServeWithSwagger :: (HasSwagger api, HasServer api context) => Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> SwaggerConfig -> ServerT api (App c) -> Application
- prepareMiddleware :: (Vault -> IO Vault) -> Middleware
- errorMiddleware :: (Request -> SomeException -> IO Response) -> Middleware
- apacheMiddleware :: LoggerConfig -> Middleware
- stdLoggerMiddleware :: IO Middleware
- servantErrorMiddleware :: LoggerConfig -> Middleware
- traceMiddleware :: Key Text -> Middleware
- data YamSettings = YamSettings {}
- type Yam = App YamSettings
- defaultYamSettings :: IO YamSettings
- runDb :: Transaction Yam a -> Yam a
- runDbIO :: YamSettings -> Transaction (ReaderT LoggerConfig IO) () -> IO ()
- runServer :: (HasSwagger api, HasServer api '[YamSettings]) => YamSettings -> Proxy api -> ServerT api Yam -> IO ()
Documentation
mkServe :: HasServer api context => Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> ServerT api (App c) -> Application Source #
mkServe' :: (HasServer api context, HasServer api' context) => (Server api -> Server api') -> Proxy api' -> Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> ServerT api (App c) -> Application Source #
mkServeWithSwagger :: (HasSwagger api, HasServer api context) => Proxy api -> Proxy context -> Context context -> Proxy c -> c -> [Middleware] -> SwaggerConfig -> ServerT api (App c) -> Application Source #
prepareMiddleware :: (Vault -> IO Vault) -> Middleware Source #
errorMiddleware :: (Request -> SomeException -> IO Response) -> Middleware Source #
traceMiddleware :: Key Text -> Middleware Source #
data YamSettings Source #
YamSettings | |
|
type Yam = App YamSettings Source #
runDbIO :: YamSettings -> Transaction (ReaderT LoggerConfig IO) () -> IO () Source #
runServer :: (HasSwagger api, HasServer api '[YamSettings]) => YamSettings -> Proxy api -> ServerT api Yam -> IO () Source #