mirror of
https://github.com/chaitin/SafeLine.git
synced 2026-02-08 17:53:33 +08:00
21 lines
371 B
Protocol Buffer
21 lines
371 B
Protocol Buffer
syntax = "proto3";
|
|
package website;
|
|
option go_package = "proto/website";
|
|
|
|
service Website {
|
|
rpc Subscribe(stream Response) returns (stream Event) {}
|
|
}
|
|
|
|
// From client-side, may be "pong"
|
|
message Response {
|
|
string type = 1;
|
|
bytes msg = 2;
|
|
bool err = 3;
|
|
}
|
|
|
|
// From server-side, may be "ping"
|
|
message Event {
|
|
string type = 1; // ping/website
|
|
bytes msg = 2;
|
|
}
|