Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helpful functions and types for generating log statements and URIs during Options fetching and merging.
Synopsis
- censorQueryItem :: Text -> QueryItem -> QueryItem
- censorQuery :: Text -> Query -> Query
- updateQuery :: (Query -> Query) -> URI -> URI
- censorURI :: Text -> URI -> URI
- connInfoToLog :: ConnInfo -> StartupLog
- serveOptsToLog :: ToJSON (EngineLogType impl) => ServeOptions impl -> StartupLog
- mkGenericStrLog :: LogLevel -> Text -> String -> StartupLog
- mkGenericLog :: ToJSON a => LogLevel -> Text -> a -> StartupLog
- data StartupTimeInfo = StartupTimeInfo {
- _stiMessage :: !Text
- _stiTimeTaken :: !Double
Documentation
censorQueryItem :: Text -> QueryItem -> QueryItem Source #
censorQuery :: Text -> Query -> Query Source #
updateQuery :: (Query -> Query) -> URI -> URI Source #
connInfoToLog :: ConnInfo -> StartupLog Source #
Generate a StartupLog
from the Postgres ConnInfo
.
serveOptsToLog :: ToJSON (EngineLogType impl) => ServeOptions impl -> StartupLog Source #
Generate a StartupLog
from the final ServeOptions
.
mkGenericStrLog :: LogLevel -> Text -> String -> StartupLog Source #
mkGenericLog :: ToJSON a => LogLevel -> Text -> a -> StartupLog Source #
data StartupTimeInfo Source #
StartupTimeInfo | |
|
Instances
FromJSON StartupTimeInfo Source # | |
Defined in Hasura.Server.Init.Logging parseJSON :: Value -> Parser StartupTimeInfo parseJSONList :: Value -> Parser [StartupTimeInfo] | |
ToJSON StartupTimeInfo Source # | |
Defined in Hasura.Server.Init.Logging toJSON :: StartupTimeInfo -> Value toEncoding :: StartupTimeInfo -> Encoding toJSONList :: [StartupTimeInfo] -> Value toEncodingList :: [StartupTimeInfo] -> Encoding |