hercules-ci-api-agent-0.5.0.0: API definition for Hercules CI Agent to talk to hercules-ci.com or Hercules CI Enterprise
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Agent.Socket.Frame

Synopsis

Documentation

data Frame o a Source #

Adds serial number n to payloads p and allows acknowledgement for a related stream that travels in the opposite direction.

Constructors

Msg

Message

Fields

Oob

Out of band message: not redelivered, not acknowledged.

Fields

  • o :: o
     
Ack

Acknowledgement

Fields

Exception

Exception

Fields

Instances

Instances details
(FromJSON a, FromJSON o) => FromJSON (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Methods

parseJSON :: Value -> Parser (Frame o a) #

parseJSONList :: Value -> Parser [Frame o a] #

(ToJSON o, ToJSON a) => ToJSON (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Methods

toJSON :: Frame o a -> Value #

toEncoding :: Frame o a -> Encoding #

toJSONList :: [Frame o a] -> Value #

toEncodingList :: [Frame o a] -> Encoding #

Generic (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Associated Types

type Rep (Frame o a) :: Type -> Type #

Methods

from :: Frame o a -> Rep (Frame o a) x #

to :: Rep (Frame o a) x -> Frame o a #

(Show a, Show o) => Show (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Methods

showsPrec :: Int -> Frame o a -> ShowS #

show :: Frame o a -> String #

showList :: [Frame o a] -> ShowS #

(NFData a, NFData o) => NFData (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Methods

rnf :: Frame o a -> () #

(Eq a, Eq o) => Eq (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

Methods

(==) :: Frame o a -> Frame o a -> Bool #

(/=) :: Frame o a -> Frame o a -> Bool #

type Rep (Frame o a) Source # 
Instance details

Defined in Hercules.API.Agent.Socket.Frame

mapOob :: (a -> b) -> Frame a c -> Frame b c Source #