plugin/hosts/proto/hosts.proto
2023-09-19 22:32:40 +08:00

23 lines
446 B
Protocol Buffer

// protoc --go_out=. --go_opt=paths=source_relative \
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
// hosts.proto
syntax = "proto3";
package proto;
option go_package = "github.com/go-gost/plugin/hosts/proto";
message LookupRequest {
string network = 1;
string host = 2;
string client = 3;
}
message LookupReply {
repeated string ips = 1;
bool ok = 2;
}
service HostMapper{
rpc Lookup(LookupRequest) returns (LookupReply);
}