Closed woorui closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Attention: 14 lines
in your changes are missing coverage. Please review.
Comparison is base (
c9ed644
) 59.45% compared to head (8eeda72
) 59.58%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
how to use
SetWantedTarget(string)
? any tests?
I add some tests about target
in source_test.go
and sfn_test.go
files.
Adding
WriteWithTarget
api forSource
, call it like:And sfn will receive the payload that be written by source like this:
And the sfn that has called
sfn.SetWantedTarget("target-id-2")
will receive data from the above sfn.The route rules is:
SetWantedTarget
, send data to the sfn.SetWantedTarget
, send the data only whendataFrame.Metadata.Target == sfn.WantedTarget
.TODO: cli/wasm support.