| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.API.APIServerLog
Synopsis
- data APIServerLog
- = APIServerStarted { }
- | NewAPIConnection
- | APIOutputSent {
- sentOutput :: Value
- | APIInputReceived {
- receivedInput :: Value
- | APIInvalidInput {
- reason :: String
- inputReceived :: Text
- | APIConnectionError { }
- | APIHTTPRequestReceived { }
- | APITransactionSubmitted { }
- newtype PathInfo = PathInfo ByteString
- newtype Method = Method ByteString
Documentation
data APIServerLog Source #
Constructors
| APIServerStarted | |
Fields | |
| NewAPIConnection | |
| APIOutputSent | |
Fields
| |
| APIInputReceived | |
Fields
| |
| APIInvalidInput | |
Fields
| |
| APIConnectionError | |
| APIHTTPRequestReceived | |
| APITransactionSubmitted | |
Fields | |
Instances
New type wrapper to define JSON instances.
Constructors
| PathInfo ByteString |
Instances
| ToJSON PathInfo Source # | |
Defined in Hydra.API.APIServerLog Methods toEncoding :: PathInfo -> Encoding toJSONList :: [PathInfo] -> Value toEncodingList :: [PathInfo] -> Encoding | |
| Show PathInfo Source # | |
| Eq PathInfo Source # | |
New type wrapper to define JSON instances.
NOTE: We are not using http-types StdMethod as we do not want to be
constrained in terms of logging and accept any method in a Request.
Constructors
| Method ByteString |
Instances
| ToJSON Method Source # | |
Defined in Hydra.API.APIServerLog Methods toEncoding :: Method -> Encoding toJSONList :: [Method] -> Value toEncodingList :: [Method] -> Encoding | |
| Show Method Source # | |
| Eq Method Source # | |