Introducing Waxosuit

A secure, cloud-native exosuit for WebAssembly

The Waxosuit Robot
use guest::prelude::*;call_handler!(handle_call);pub fn handle_call(ctx: &CapabilitiesContext, 
cmd: &Command) -> Result<Event>
{
match cmd.payload {
Some(ref p) => match p.type_url.as_ref() {
http::TYPE_URL_HTTP_REQUEST =>
get_sensor_details(ctx, p.value.as_slice()),
core::TYPE_URL_HEALTH_REQUEST => Ok(Event::success()),
_ => Ok(Event::bad_dispatch(&p.type_url)),
},
None => Ok(http::Response::bad_request().as_event(true, None)),
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Hoffman

In relentless pursuit of elegant simplicity. Tinkerer, writer of tech, fantasy, and sci-fi. Converting napkin drawings into code for @CapitalOne