Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodedEvent ¶
type DecodedEvent struct {
apiClient.WatcherEventPayload
ConcreteEvent events.ConcreteEvent
}
DecodedEvent wraps WatcherEventPayload with a decoded ConcreteEvent.
Add domain-specific enrichment fields here. For example:
FundTokenData *events.FundTokenData DistributorRequest *events.DistributorRequest PaymentRequests []workflows.PaymentRequest
func DecodeFromEvent ¶
DecodeFromEvent extracts the WatcherEventPayload from an apiClient.Event and decodes the ConcreteEvent based on the event type.
Extend this function to decode enrichment data from reference data. See the handler for which enrichment fields are populated.
func (DecodedEvent) EventName ¶
func (e DecodedEvent) EventName() events.EventName
EventName returns the parsed event name from the payload.
Click to show internal directories.
Click to hide internal directories.