Package io.nitric.faas

Provides the Function as a Service (FaaS) classes.

The example below illustrates the FaaS API.


 import io.nitric.faas.Faas;
 import io.nitric.faas.Trigger;
 import io.nitric.faas.Response;

 public class Handler implements NitricFunction {

     @Override
     public Response handle(Trigger trigger) {
         return trigger.buildResponse("Hello World");
     }

     public static void main(String... args) {
         Faas.start(new Handler());
     }
 }