odds-crawler-proto/network/network.proto
2019-05-01 19:40:40 +09:00

26 lines
606 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 = "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) {}
}
// protoc -I network/ network/network.proto --go_out=plugins=grpc:network