hydra-node-0.17.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.API.APIServerLog

Synopsis

Documentation

data APIServerLog Source #

Instances

Instances details
Arbitrary APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

FromJSON APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

parseJSON :: Value -> Parser APIServerLog

parseJSONList :: Value -> Parser [APIServerLog]

omittedField :: Maybe APIServerLog

ToJSON APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

toJSON :: APIServerLog -> Value

toEncoding :: APIServerLog -> Encoding

toJSONList :: [APIServerLog] -> Value

toEncodingList :: [APIServerLog] -> Encoding

omitField :: APIServerLog -> Bool

Generic APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

Associated Types

type Rep APIServerLog :: Type -> Type Source #

Show APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

Eq APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

type Rep APIServerLog Source # 
Instance details

Defined in Hydra.API.APIServerLog

type Rep APIServerLog = D1 ('MetaData "APIServerLog" "Hydra.API.APIServerLog" "hydra-node-0.17.0-LAQRO9wCTJb3PlLjnCHOjA" 'False) ((C1 ('MetaCons "APIServerStarted" 'PrefixI 'True) (S1 ('MetaSel ('Just "listeningPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PortNumber)) :+: (C1 ('MetaCons "NewAPIConnection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "APIOutputSent" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentOutput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))) :+: ((C1 ('MetaCons "APIInputReceived" 'PrefixI 'True) (S1 ('MetaSel ('Just "receivedInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :+: C1 ('MetaCons "APIInvalidInput" 'PrefixI 'True) (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "inputReceived") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :+: (C1 ('MetaCons "APIConnectionError" 'PrefixI 'True) (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons "APIHTTPRequestReceived" 'PrefixI 'True) (S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Method) :*: S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PathInfo)))))

newtype PathInfo Source #

New type wrapper to define JSON instances.

Constructors

PathInfo ByteString 

Instances

Instances details
Arbitrary PathInfo Source # 
Instance details

Defined in Hydra.API.APIServerLog

FromJSON PathInfo Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

parseJSON :: Value -> Parser PathInfo

parseJSONList :: Value -> Parser [PathInfo]

omittedField :: Maybe PathInfo

ToJSON PathInfo Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

toJSON :: PathInfo -> Value

toEncoding :: PathInfo -> Encoding

toJSONList :: [PathInfo] -> Value

toEncodingList :: [PathInfo] -> Encoding

omitField :: PathInfo -> Bool

Show PathInfo Source # 
Instance details

Defined in Hydra.API.APIServerLog

Eq PathInfo Source # 
Instance details

Defined in Hydra.API.APIServerLog

newtype Method 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

Instances details
Arbitrary Method Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

arbitrary :: Gen Method

shrink :: Method -> [Method]

FromJSON Method Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

parseJSON :: Value -> Parser Method

parseJSONList :: Value -> Parser [Method]

omittedField :: Maybe Method

ToJSON Method Source # 
Instance details

Defined in Hydra.API.APIServerLog

Methods

toJSON :: Method -> Value

toEncoding :: Method -> Encoding

toJSONList :: [Method] -> Value

toEncodingList :: [Method] -> Encoding

omitField :: Method -> Bool

Show Method Source # 
Instance details

Defined in Hydra.API.APIServerLog

Eq Method Source # 
Instance details

Defined in Hydra.API.APIServerLog