mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-26 00:51:11 +02:00
This adds linting to our protobuf definitions via prototool. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
30 lines
708 B
Protocol Buffer
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;
|
|
}
|