Method
uplink_event
(
&self,
_vars: &HashMap<String, String>,
pl: &integration::UplinkEvent,
)
Source from the content-addressed store, hash-verified
| 92 | #[async_trait] |
| 93 | impl IntegrationTrait for Integration { |
| 94 | async fn uplink_event( |
| 95 | &self, |
| 96 | _vars: &HashMap<String, String>, |
| 97 | pl: &integration::UplinkEvent, |
| 98 | ) -> Result<()> { |
| 99 | let b = match self.json { |
| 100 | true => serde_json::to_vec(&pl)?, |
| 101 | false => pl.encode_to_vec(), |
| 102 | }; |
| 103 | |
| 104 | self.post_event("up", b).await |
| 105 | } |
| 106 | |
| 107 | async fn join_event( |
| 108 | &self, |