21 lines
403 B
Protocol Buffer
21 lines
403 B
Protocol Buffer
// protoc --go_out=. --go_opt=paths=source_relative \
|
|
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
|
// recorder.proto
|
|
|
|
syntax = "proto3";
|
|
package proto;
|
|
option go_package = "github.com/go-gost/plugin/ingress/proto";
|
|
|
|
message RecordRequest {
|
|
bytes data = 1;
|
|
bytes metadata = 2;
|
|
}
|
|
|
|
message RecordReply {
|
|
bool ok = 1;
|
|
}
|
|
|
|
service Recorder {
|
|
rpc Record(RecordRequest) returns (RecordReply);
|
|
}
|