mirror of
https://github.com/go-gost/plugin.git
synced 2026-10-21 05:13:07 +00:00
25 lines
476 B
Protocol Buffer
25 lines
476 B
Protocol Buffer
// protoc --go_out=. --go_opt=paths=source_relative \
|
|
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
// bypass.proto
|
|
|
|
syntax = "proto3";
|
|
package proto;
|
|
option go_package = "github.com/go-gost/plugin/bypass/proto";
|
|
|
|
message BypassRequest {
|
|
string addr = 1;
|
|
string client = 2;
|
|
string network = 3;
|
|
string host = 4;
|
|
string path = 5;
|
|
string service = 6;
|
|
}
|
|
|
|
message BypassReply {
|
|
bool ok = 1;
|
|
}
|
|
|
|
service Bypass {
|
|
rpc Bypass(BypassRequest) returns (BypassReply);
|
|
}
|