25 lines
579 B
Protocol Buffer
25 lines
579 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
option cc_enable_arenas = true;
|
||
|
option java_outer_classname = "NetworkProto";
|
||
|
option java_multiple_files = true;
|
||
|
option java_package = "net.loafle.oddscrawler";
|
||
|
option go_package = "git.loafle.net/odds-crawler/odds-crawler-proto/network";
|
||
|
|
||
|
package oddscrawler;
|
||
|
|
||
|
// The request message containing the user's name.
|
||
|
message NetworkRequest {
|
||
|
string name = 1;
|
||
|
}
|
||
|
|
||
|
// The response message containing the greetings
|
||
|
message NetworkReply {
|
||
|
string message = 1;
|
||
|
}
|
||
|
|
||
|
service Networker {
|
||
|
// Sends a greeting
|
||
|
rpc SayHello (NetworkRequest) returns (NetworkReply) {}
|
||
|
}
|