Last active
January 29, 2017 13:13
-
-
Save fuyufjh/f6af9152e19b1b355829baaf4f74cb34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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