mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
20 lines
379 B
Protocol Buffer
20 lines
379 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// Web exposes a backend server over gRPC.
|
|
package web;
|
|
|
|
option go_package = "github.com/johanbrandhorst/wasm-experiments/grpc/proto/server";
|
|
|
|
// Backend defines the interface exposed by the backend.
|
|
service Backend {
|
|
rpc GetUser(GetUserRequest) returns (User) {}
|
|
}
|
|
|
|
message GetUserRequest {
|
|
string user_id = 1;
|
|
}
|
|
|
|
message User {
|
|
string id = 1;
|
|
}
|