Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (26 sloc) 655 Bytes
syntax = "proto3";
package rpc;
import "google/protobuf/empty.proto";
import "google/api/annotations.proto";
import "protoc-gen-swagger/options/annotations.proto";
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
info: {
title: "HTTP gateway for GRPC service";
};
base_path: ":8081";
};
service GRPC {
rpc GetVersion(google.protobuf.Empty) returns (Version){
option (google.api.http) = {
get: "/api/version"
};
}
rpc ServerStream(google.protobuf.Empty) returns(stream Message){}
}
message Version {
string sem_ver = 1;
string git_commit = 2;
}
message Message {
string message = 1;
}