Skip to content
Andrew edited this page May 2, 2023 · 6 revisions

RPC with Bebop can be achieved with Tempo.

/** 
 * `HelloRequest` is a struct representing a request to the Greeter service.
 */
 struct HelloRequest {
    /** 
     * The name to be used in the greeting, of type string.
     */
    string name;
}

/** 
 * `HelloResponse` is a struct representing the response from the Greeter service.
 */
struct HelloResponse {
    /** 
     * The greeting message generated by the service, of type string.
     */
    string serviceMessage;
}

/** 
 * `Greeter` is a service that provides a method for generating greeting messages.
 */
service Greeter {
    /**
     * `sayHello` is a method that takes a `HelloRequest` and returns a `HelloResponse`.
     */
    sayHello(HelloRequest): HelloResponse;
}