30 lines
515 B
Protocol Buffer
30 lines
515 B
Protocol Buffer
// protoc --go_out=. --go_opt=paths=source_relative \
|
|
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
// ingress.proto
|
|
|
|
syntax = "proto3";
|
|
package proto;
|
|
option go_package = "github.com/go-gost/plugin/ingress/proto";
|
|
|
|
message GetRequest {
|
|
string host = 1;
|
|
}
|
|
|
|
message GetReply {
|
|
string endpoint = 1;
|
|
}
|
|
|
|
message SetRequest {
|
|
string host = 1;
|
|
string endpoint = 2;
|
|
}
|
|
|
|
message SetReply {
|
|
bool ok = 1;
|
|
}
|
|
|
|
service Ingress {
|
|
rpc Get(GetRequest) returns (GetReply);
|
|
rpc Set(SetRequest) returns (SetReply);
|
|
}
|