Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Event = Event {
- eventType :: Text
- eventAttributes :: [KVPair]
- class ToEvent e where
- makeEventType :: Proxy e -> String
- makeEventData :: e -> [(ByteString, ByteString)]
- newtype ContextEvent t = ContextEvent t
- emit :: ToEvent e => Member (Output Event) r => e -> Sem r ()
- logEvent :: forall e r. (ToJSON e, ToEvent e, Select e) => Member Logger r => e -> Sem r ()
- makeEvent :: ToEvent e => e -> Event
Documentation
Event | |
|
Instances
Eq Event | |
Show Event | |
Generic Event | |
FromJSON Event | |
Defined in Network.ABCI.Types.Messages.FieldTypes parseJSON :: Value -> Parser Event parseJSONList :: Value -> Parser [Event] | |
ToJSON Event | |
Defined in Network.ABCI.Types.Messages.FieldTypes | |
Wrapped Event | |
type Rep Event | |
Defined in Network.ABCI.Types.Messages.FieldTypes type Rep Event = D1 (MetaData "Event" "Network.ABCI.Types.Messages.FieldTypes" "hs-abci-types-0.1.0.0-CSbCBfElGIr9n2xrkSCrY5" False) (C1 (MetaCons "Event" PrefixI True) (S1 (MetaSel (Just "eventType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "eventAttributes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [KVPair]))) | |
type Unwrapped Event | |
Defined in Network.ABCI.Types.Messages.FieldTypes |
class ToEvent e where Source #
A class representing a type that can be emitted as an event in the | event logs for the deliverTx response.
makeEventType :: Proxy e -> String Source #
makeEventData :: e -> [(ByteString, ByteString)] Source #
makeEventData :: ToJSON e => e -> [(ByteString, ByteString)] Source #
newtype ContextEvent t Source #
Special event wrapper to add contextual event_type info
Instances
(ToJSON a, ToEvent a) => ToJSON (ContextEvent a) Source # | |
Defined in Tendermint.SDK.BaseApp.Events toJSON :: ContextEvent a -> Value toEncoding :: ContextEvent a -> Encoding toJSONList :: [ContextEvent a] -> Value toEncodingList :: [ContextEvent a] -> Encoding | |
Select a => Select (ContextEvent a) Source # | |
Defined in Tendermint.SDK.BaseApp.Events |