Andrew Rynhard bf8fc1dcbd chore: lint protobuf definitions
This adds linting to our protobuf definitions via prototool.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-08-27 18:12:36 -07:00

30 lines
708 B
Protocol Buffer

syntax = "proto3";
package proto;
option go_package = "proto";
option java_multiple_files = true;
option java_outer_classname = "ApiProto";
option java_package = "com.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
// The Init service definition.
service Ntpd {
rpc Time(google.protobuf.Empty) returns (TimeReply);
rpc TimeCheck(TimeRequest) returns (TimeReply);
}
// The response message containing the ntp server
message TimeRequest {
string server = 1;
}
// The response message containing the ntp server, time, and offset
message TimeReply {
string server = 1;
google.protobuf.Timestamp localtime = 2;
google.protobuf.Timestamp remotetime = 3;
}