Skip to content

Instantly share code, notes, and snippets.

@fuyufjh
Last active January 29, 2017 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuyufjh/f6af9152e19b1b355829baaf4f74cb34 to your computer and use it in GitHub Desktop.
Save fuyufjh/f6af9152e19b1b355829baaf4f74cb34 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package protocol;
import "google/protobuf/empty.proto";
service SSMgrSlave {
rpc Allocate(AllocateRequest) returns (google.protobuf.Empty) {}
rpc Free(FreeRequest) returns (google.protobuf.Empty) {}
rpc GetStats(google.protobuf.Empty) returns (Statistics) {}
}
message AllocateRequest {
int32 port = 1;
string password = 2;
string method = 3;
}
message FreeRequest {
int32 port = 1;
}
message Statistics {
map<int32, int64> flow = 1;
int64 start_time = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment