github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/server/trace-func-py/faas.proto (about)

     1  /*
     2  * Set up: 
     3  * go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
     4  * go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
     5  * echo "$PATH:$(go env GOPATH)/bin" >> ~/.profile 
     6  */
     7  syntax = "proto3";
     8  
     9  option go_package = "github.com/eth-easl/loader/pkg/faas";
    10  
    11  package faasfunction;
    12  
    13  // The function service definition.
    14  service Executor {
    15    // Executes the function
    16    rpc Execute (FaasRequest) returns (FaasReply) {}
    17  }
    18  
    19  // Request message containing the function input (string).
    20  message FaasRequest {
    21    string input = 1;
    22    uint32 runtime = 2;
    23    uint32 memory = 3;
    24  }
    25  
    26  // Response message containing the execution latency (microseconds).
    27  message FaasReply {
    28    string response = 1;
    29    int64 latency = 2;
    30  }