Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Callback = Callback {
- _executable :: FilePath
- _arguments :: [Text]
- serializeMessage :: Feed -> FeedElement -> LByteString
- deserializeMessage :: MonadFail m => LByteString -> m (Feed, FeedElement)
Documentation
External program run for each feed element.
Data is passed to that program through standard input (stdin
), using Avro (https://hackage.haskell.org/package/avro) serialization format. The data schema is described in file ids/callback.json
, provided with this library.
Callback | |
|
Instances
Eq Callback Source # | |
Ord Callback Source # | |
Defined in Imm.Callback | |
Read Callback Source # | |
Show Callback Source # | |
Generic Callback Source # | |
FromDhall Callback Source # | |
Defined in Imm.Callback autoWith :: InputNormalizer -> Decoder Callback # | |
Pretty Callback Source # | |
Defined in Imm.Callback | |
type Rep Callback Source # | |
Defined in Imm.Callback type Rep Callback = D1 (MetaData "Callback" "Imm.Callback" "imm-1.10.0.0-377OdLQgGSoCHB8Qc5Ycpd" False) (C1 (MetaCons "Callback" PrefixI True) (S1 (MetaSel (Just "_executable") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Just "_arguments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text]))) |
serializeMessage :: Feed -> FeedElement -> LByteString Source #
Meant to be called by the main imm
process.
deserializeMessage :: MonadFail m => LByteString -> m (Feed, FeedElement) Source #
Meant to be called by callback process.