// 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);
}
