| 59 | |
| 60 | #[async_trait] |
| 61 | pub trait IntegrationTrait { |
| 62 | async fn uplink_event(&self, pl: &integration_pb::UplinkEvent) -> Result<()>; |
| 63 | |
| 64 | async fn join_event(&self, pl: &integration_pb::JoinEvent) -> Result<()>; |
| 65 | |
| 66 | async fn ack_event(&self, pl: &integration_pb::AckEvent) -> Result<()>; |
| 67 | |
| 68 | async fn txack_event(&self, pl: &integration_pb::TxAckEvent) -> Result<()>; |
| 69 | |
| 70 | async fn log_event(&self, pl: &integration_pb::LogEvent) -> Result<()>; |
| 71 | |
| 72 | async fn status_event(&self, pl: &integration_pb::StatusEvent) -> Result<()>; |
| 73 | |
| 74 | async fn location_event(&self, pl: &integration_pb::LocationEvent) -> Result<()>; |
| 75 | } |
| 76 | |
| 77 | struct Integration { |
| 78 | redis_client: RedisClient, |
nothing calls this directly
no outgoing calls
no test coverage detected