add hop plugin
This commit is contained in:
22
hop/proto/hop.proto
Normal file
22
hop/proto/hop.proto
Normal file
@ -0,0 +1,22 @@
|
||||
// protoc --go_out=. --go_opt=paths=source_relative \
|
||||
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
||||
// hop.proto
|
||||
|
||||
syntax = "proto3";
|
||||
package proto;
|
||||
option go_package = "github.com/go-gost/plugin/hop/proto";
|
||||
|
||||
message SelectRequest {
|
||||
string network = 1;
|
||||
string addr = 2;
|
||||
string host = 3;
|
||||
string client = 4;
|
||||
}
|
||||
|
||||
message SelectReply {
|
||||
bytes node = 1;
|
||||
}
|
||||
|
||||
service Hop {
|
||||
rpc Select(SelectRequest) returns (SelectReply);
|
||||
}
|
Reference in New Issue
Block a user