odds-crawler-proto/network/network.proto

26 lines
606 B
Protocol Buffer
Raw Normal View History

2019-05-01 08:14:12 +00:00
syntax = "proto3";
option cc_enable_arenas = true;
option java_outer_classname = "NetworkProto";
option java_multiple_files = true;
option java_package = "net.loafle.oddscrawler";
2019-05-01 10:40:40 +00:00
option go_package = "network";
2019-05-01 08:14:12 +00:00
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) {}
}
2019-05-01 10:40:40 +00:00
// protoc -I network/ network/network.proto --go_out=plugins=grpc:network